I'm trying to scrape a web page that contains 200+ <li class="classToGet">
elements, which are loaded with AJAX as one scrolls down. When I read the site's source with urllib2.urlopen(url).read()
I can only get the initial 100 <li>
s.
When I turn JavaScript off in my browser and go to the page, all 200+ <li>
s are displayed. How do I disable JavaScript for urllib2 as it loads the page?
Thanks for the help.