Hello everyone i'm trying to use selenium and scrapy to scraping some information from https://answers.yahoo.com/dir/index/discover?sid=396545663
I try different method, i use Selenium and setting PhantomJs like driver. For scrolling down the page, it's a infinite scroll page, i use this instruction:
elem.send_keys(Keys.PAGE_DOWN)
For simulating the press of Page Down button, instead of the JavaScript function:
browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
Because this one "seems" load less elements in the page.
The main problem is how i can know when i have reached the bottom of the page? Is "Infinite Scroll" page so i can't know when it end i need to scroll down, but i don't have any element in the bottom to analyze.
Actually i use temporized cycle, but look really stupid.
Thanks