diff --git a/personal_data/fetchers/psnprofiles.py b/personal_data/fetchers/psnprofiles.py index 4cd66b0..a8f0234 100644 --- a/personal_data/fetchers/psnprofiles.py +++ b/personal_data/fetchers/psnprofiles.py @@ -1,8 +1,8 @@ import dataclasses +import datetime import logging import re from collections.abc import Iterator -import datetime import bs4 import requests_util @@ -129,7 +129,7 @@ class PsnProfilesScraper(Scraper): def _parse_game_release_date(self, soup: bs4.BeautifulSoup) -> datetime.date: table_rows = soup.select('table.gameInfo tr') - for row in table_rows : + for row in table_rows: cells = row.select('td') if cells[0].get_text() in {'Release', 'Releases'}: text = cells[1].get_text() diff --git a/personal_data/fetchers/steam_community.py b/personal_data/fetchers/steam_community.py index a7ea8c3..852f95b 100644 --- a/personal_data/fetchers/steam_community.py +++ b/personal_data/fetchers/steam_community.py @@ -49,7 +49,9 @@ class SteamAchievementScraper(Scraper): appid = int(href.split('/')[-1]) yield appid - def _scrape_app_achievements(self, username: str, appid: int) -> Iterator[dict[str, Any]]: + def _scrape_app_achievements( + self, username: str, appid: int, + ) -> Iterator[dict[str, Any]]: url = URL_GAME_ACHIVEMENTS.format( username=username, appid=appid,