From 9e8fd5be3fbc4c59324a7919b09a7cb8ec14f21c Mon Sep 17 00:00:00 2001 From: Antonio Pelusi Date: Fri, 11 Nov 2022 11:46:22 +0100 Subject: [PATCH] Bug Fix Fixed an error caused by an update in vgchartz.com website structure. --- vgchartzfull.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vgchartzfull.py b/vgchartzfull.py index b1d75a4..9b4b631 100644 --- a/vgchartzfull.py +++ b/vgchartzfull.py @@ -36,11 +36,11 @@ # vgchartz website is really weird so we have to search for # tags with game urls game_tags = list(filter( - lambda x: x.attrs['href'].startswith('http://www.vgchartz.com/game/'), + 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") - ))[10:] + )) for tag in game_tags: