1

I am trying to scrape some data from the following web page:

College Board - Georgia Institute of Technology

But the information I need to access is only displayed after pressing the "Applying" tab on the left. Since the URL does not change, how can I simulate pressing the button in order to scrape the HTML?

I am using Python3.3 and the requests module.

1 Answer 1

1

According to the page source, the information you need is hidden inside a javascript code and is calculated and rendered after the click on "Applying" link.

requests simply cannot make in-browser user actions and, since there is no additional requests going after clicking "Applying", you cannot get the data without actually having a real browser to run that js code. Mechanize also wouldn't help because it cannot handle js.

Consider using selenium (FYI, you can also use a headless PhantomJS browser).

Hope that helps.

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.