Skip to content Skip to sidebar Skip to footer

Pulling The Href From A Link When Web Scraping Using Python

I am scraping from this page: https://www.pro-football-reference.com/years/2018/week_1.htm It is a list of game scores for American Football. I want to open the link to the stats f

Solution 1:

link = games[0].find("td",{"class":"right gamelink"}).find('a')

print(link['href'])

Post a Comment for "Pulling The Href From A Link When Web Scraping Using Python"