Issue
Im trying to scrape some text from :https://twitchtracker.com/criticalrole/games, in order to show a streamers most streamed game for a twitch pay data analysis project.
I am trying to scrape "Dungeons & Dragons" from the first row in the table, but so far Ive only scraped the href.
My Code: table = soup2.find(id='games').select('a', limit=1) print(table)
Output [<a href="/criticalrole/games/509577"> Dungeons & Dragons </a>]
Solution
Use get_text()
:
print(table[0].get_text())
Answered By - Yevgeniy Kosmak
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.