Skip to content Skip to sidebar Skip to footer

Wait For Webpage To Fully Load Before Scraping With Python Requests

I'm currently attempting to scrape data from a specific page on LinkedIn. I have a script that is able to log into LinkedIn, but I run into a snag when I try to access the page con

Solution 1:

If any parts of the web page is rendered dynamically, for example using Javascript, beautifulsoup might not be able to work with that.

I use Selenium + PhantomJS. I load the page (wait for it to fully load) and then enter the login details. Selenium has nice API which lets you programmatically check for specific html elements and wait for them to appear which is very useful in such cases.

Post a Comment for "Wait For Webpage To Fully Load Before Scraping With Python Requests"