0

I want to crawl the data at the bottom of this webpage (the historical_table). If I use requests.get it returns the source code of the page, that contains only the script to create the table. The only way I know to crawl it is using selenium.webdriver (so via a browser session); however, this method is slower.
Is there a way to simulate the browser execution of the script without opening a browser session at all?

2
  • Possible duplicate of stackoverflow.com/questions/7593611/… check this Commented Mar 2, 2017 at 8:23
  • No, I'd like to use another tool, not selenium. I'd like to use a requests-like process that gets the HTML of the page AND execute the script. Commented Mar 2, 2017 at 8:26

1 Answer 1

1

It is possible but it means you are writing your own browser which I dont recommend. Use a headless browser instead, like http://phantomjs.org . These are meant to be used this way.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.