We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cbed6e commit fc78135Copy full SHA for fc78135
html_parsing/get_price_game/from_gog.py
@@ -14,17 +14,17 @@
14
15
16
def get_games(name: str) -> list[tuple[str, int]]:
17
- url = f"https://www.gog.com/games/ajax/filtered?language=ru&mediaType=game&page=1&search={name}"
+ url = (
18
+ "https://www.gog.com/games/ajax/filtered?"
19
+ f"language=ru&mediaType=game&page=1&search={name}"
20
+ )
21
22
rs = session.get(url)
23
rs.raise_for_status()
24
25
data = rs.json()
26
- return [
- (game["title"], game["price"]["amount"])
- for game in data["products"]
27
- ]
+ return [(game["title"], game["price"]["amount"]) for game in data["products"]]
28
29
30
if __name__ == "__main__":
0 commit comments