Quantcast
Channel: Web scraping using beautiful soup (sports data) - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by t_yand for Web scraping using beautiful soup (sports data)

could you try this?from bs4 import BeautifulSoupfrom urllib.request import urlopen as uReqmy_url = 'https://www.sportsbet.com.au/betting/basketball-us'uClient = uReq(my_url)page_html =...

View Article


Answer by chitown88 for Web scraping using beautiful soup (sports data)

I was thinking what you could do is just iterate and store those into lists, then write to file. I unfortunately can't access the site at work, so I can't test the code, but I believe this should give...

View Article


Answer by mincom for Web scraping using beautiful soup (sports data)

Your for loop indentation is not correct. The correct indentation would be:for price_text in price_texts: team = name_text.div.text odds = price_text.span.text team = name_text.div.text odds =...

View Article

Web scraping using beautiful soup (sports data)

When i try loading this code i get two errors.1:The first one is that i can't properly scrape the data for name_text.2: I get an indentation error for team = name_text.div.text. I know it is probably...

View Article
Browsing latest articles
Browse All 4 View Live


Latest Images