Skip to content

Commit

Permalink
d011c01b25
Browse files Browse the repository at this point in the history
  • Loading branch information
Liftingthedata committed Jun 22, 2023
1 parent 1111a4c commit 8bbc090
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scrapers/metacritic/scrape_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ def get_last_page(page_link: str) -> int:
"""

soup = get_soup(page_link)
if (
soup == 0
): # handle broken links like "https://www.metacritic.com/game/xbox-360/h0w-2-p1ng-a-trademarkremoved/user-reviews?page="
if soup == 0:
# handle broken links like "https://www.metacritic.com/game/xbox-360/h0w-2-p1ng-a-trademarkremoved/user-reviews?page="
return None
last_page = soup.find("li", class_="page last_page")
if last_page is not None:
Expand Down

0 comments on commit 8bbc090

Please sign in to comment.