Reputation: 1242
Example page: http://www.quora.com/Python-programming-language-1/followers
That page gives a list of 111.5k people. But requires me to scroll with my mouse for a long period of time to actually get the page to load completely. How to do it automatically in casperjs? Basically I need all the names on that page or I need to work on the page only after it has been completely loaded. How do I do this with casperjs + phantomjs?
Offtopic: If there is any module in python that can do this, feel free to suggest in the comments.
Upvotes: 1
Views: 2201
Reputation: 1649
You can use scrollTo
:
casper.start('http://yoursite.com', function() {
this.scrollTo(Xvalue, Yvalue);
});
or even scrollBottom
casper.start('http://yoursite.com', function() {
this.scrollBottom();
});
In that case you would have to wait until the javascript load the page and repeat that as many time as you need.
Upvotes: 1