title: how to scrape search results if returned in javascript (using python)
body: <p>The site I want to scrape populates returns using JavaScript.</p>
  
  <p>Can I simply call the script somehow and work with its results? (Then without pagination, of course.) I don't want to run the entire thing to scrape the resulting formatted HTML, but the raw source is blank.</p>
  
  <p>Have a look: <a href="http://kozbeszerzes.ceu.hu/searchresults.xhtml?q=1998&amp;page=0" rel="nofollow">http://kozbeszerzes.ceu.hu/searchresults.xhtml?q=1998&amp;page=0</a></p>
  
  <p>The source of the return is simply</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="/templates/base_template.xsl"?&gt;
  &lt;content&gt;
    &lt;head&gt;
      &lt;SCRIPT type="text/javascript" src="/js/searchResultsView.js"&gt;&lt;/SCRIPT&gt;    
    &lt;/head&gt;
      &lt;whitebox&gt;
      &lt;div id = "hits"&gt;&lt;/div&gt;  
    &lt;/whitebox&gt;
  &lt;/content&gt;
  </code></pre>
  
  <p>I would prefer simple Python tools.</p>