Hi, as the title suggests, I would like to extract data from sports betting sites, with this code I download the html of the site
from bs4 import BeautifulSoup
import urllib.request
url = "https://sports.bwin.com/"
try:
page = urllib.request.urlopen(url)
except:
print("An error occured.")
soup = BeautifulSoup(page, 'html.parser')
print(soup)then I can't go on, if I want to extract the participating teams I tried with the re module and this code but it doesn't workfrom bs4 import BeautifulSoup
import urllib.request
import re
url = "https://sports.bwin.com/"
try:
page = urllib.request.urlopen(url)
except:
print("An error occured.")
soup = BeautifulSoup(page, 'html.parser')
#print(soup)
regex = re.compile("participant")
content_lis = soup.find_all('div', attrs={'class': regex})
print(content_lis)thank you who will help me
