I am trying to clear data from a website using Scrapy , a python framework. I can get data from the site using spiders, but the problem occurs when I try to navigate the website.
Accordingly , the Scrapy post does not support Javascript.
Also, as indicated in the accepted answer, I cannot use mechanize or lxml. He suggests using a combination Selenium and Scrapy.
Button Function:
I am looking at offers on the website. Button function to show more offers. SO when clicked on it calls a javascript function that loads the results.
I also watched CasperJS and PhantomJS. Will they work?
I just need to automate the button click. How should I do it?
source
share