Skip to content Skip to sidebar Skip to footer

Python Requests Connectionerrorr [11001] Getaddrinfo Failed

I'm making a stock index webscraper using beautifulsoup and requests but I can't figure out what's blocking the connection. Here's my code: from bs4 import BeautifulSoup import req

Solution 1:

The url address that you are calling contains a typo http://finace.yahoo.com/quote/ -> http://finaNce.yahoo.com/quote/

As a rule of thumb, whenever your scraper behaves in an unexpected way, it is always recommended to run the scenario in a browser and/or curl command line to debug any connection/javascript issues.

Post a Comment for "Python Requests Connectionerrorr [11001] Getaddrinfo Failed"