I don’t understand why it works with different scenarios, but not with this one. Basically, some gentleman helped me out HERE with improving my code to scrape weather, which works perfectly. I then tried to do the same to ...
Home/web-scraping
Discy Latest Questions
Right now, I catch the exception in the except Exception: clause, and do print(exception). The result provides no information since it always prints <class 'Exception'>. I knew this used to work in python 2, but how do I do it ...
I’m practicing the code from ‘Web Scraping with Python’, and I keep having this certificate problem: from urllib.request import urlopen from bs4 import BeautifulSoup import re pages = set() def getLinks(pageUrl): global pages html = urlopen("http://en.wikipedia.org"+pageUrl) ...