1
0
This commit is contained in:
Jon Michael Aanes 2024-10-25 21:30:12 +02:00
parent 842bb5d609
commit 9a9af4287a
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -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,