Using the below code, I can't pull the College Football matchups from pregame.com in the game center.
I've tried multiple class ids with different elements, and even tried pulling with pandas, but can't get the entire table. Is there another way to scrape it successfully?
from bs4 import BeautifulSoup import lxml import requests header = {'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36'} pregame = requests.get('https://pregame.com/game-center/?d=1636174800000&t=0&l=2&a=0&s=AwayRot&m=false&b=undefined&o=Current&c=All&k=', 'r').text soup = BeautifulSoup(pregame, 'lxml') div = soup.find_all('p', class_ = 'pggc-col-data pggc-away') print(div)