title: How can I render JavaScript HTML to HTML in python?
body: <p>I have looked around and only found solutions that render a URL to HTML. However I need a way to be able to render a webpage (That I already have, and that has JavaScript) to proper HTML.</p>
  
  <p>Want:
  Webpage (with JavaScript) ---> HTML</p>
  
  <p>Not: URL --> Webpage (with JavaScript) ---> HTML</p>
  
  <p>I couldn't figure out how to make the other code work the way I wanted.</p>
  
  <p>This is the code I was using that renders URLs:
  <a href="http://webscraping.com/blog/Scraping-JavaScript-webpages-with-webkit/" rel="noreferrer">http://webscraping.com/blog/Scraping-JavaScript-webpages-with-webkit/</a></p>
  
  <p>For clarity, the code above takes a URL of a webpage that has some parts of the page rendered by JavaScript, so if I scrape the page normally using say urllib2 then I won't get all the links etc that are rendered as after the JavaScript.</p>
  
  <p>However I want to be able to scrape a page, say again with urllib2, and then render that page and get the outcome HTML. (Different to the above code since it takes a URL as it's argument.</p>
  
  <p>Any help is appreciated, thanks guys :)</p>