You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running the script (in Python 3) however I encountered an issue at line 39 (lambda x: x.attrs['href'].startswith('http://www.vgchartz.com/game/') ) which resulted in a KeyError 'href'.
Kindly advice what is needed to solve this?
Many thanks!
The text was updated successfully, but these errors were encountered:
Fix this man, pls.
Found a quick fix from someone on the pull request page, replace your lambda function with this:
game_tags = list(filter(
lambda x: 'href' in x.attrs and x.attrs['href'].startswith('https://www.vgchartz.com/game/'),
# discard the first 10 elements because those
# links are in the navigation bar
soup.find_all("a")
))
Hi,
I tried running the script (in Python 3) however I encountered an issue at line 39 (lambda x: x.attrs['href'].startswith('http://www.vgchartz.com/game/') ) which resulted in a KeyError 'href'.
Kindly advice what is needed to solve this?
Many thanks!
The text was updated successfully, but these errors were encountered: