Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Cannot scrape defense table
Post Body

Full weblink is https://www.sports-reference.com/cfb/schools/georgia/2024.html

Can someone explain to me, why I can only scrape 'offense' table? WHen I try to do same thing with 'defense', it cannot find the table.

for season in seasons:
  for team in teams:
    url =f'https://www.sports-reference.com/cfb/schools/{team}/{season}/gamelog/'

    off_df = pd.read_html(url, header=1, attrs={'id':'offense'})[0]

    def_df = pd.read_html(url, header=1, attrs={'id':'defense'})[0]

    time.sleep(random.randint(4,5))

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,134
Link Karma
42
Comment Karma
5,092
Profile updated: 18 hours ago
Posts updated: 2 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 month ago