Skip to content
Advertisement

Tag: beautifulsoup

Scraping Sports Data With Beautifulsoup

This is my first-time web scraping with beautiful soup and wanted to do a little project with hockey since I am a huge fan of the sport. I am a little stuck and wondering how to retrieve the header names of the stats for each player. Here is my current code: I am currently getting an error that says “ResultSet

Extracting specific string matches from a Stock Website page

I am trying webscrape stock market caps, using this below code. At first I traditionally tried to fetch the list of market cap values using bs4. When I used print(x.find(‘span’,{‘class’: ‘Trsdu(0.3s)’}).text) to do this, I got AttributeError: ‘NoneType’ object has no attribute ‘text’ error. I did not know how to resolve the above error specific to my code. So I

Advertisement