Ruff
This commit is contained in:
parent
842bb5d609
commit
9a9af4287a
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user