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 fc78135 commit 2740a33Copy full SHA for 2740a33
html_parsing/get_price_game/from_gog.py
@@ -13,7 +13,7 @@
13
] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0"
14
15
16
-def get_games(name: str) -> list[tuple[str, int]]:
+def get_games(name: str) -> list[tuple[str, str]]:
17
url = (
18
"https://www.gog.com/games/ajax/filtered?"
19
f"language=ru&mediaType=game&page=1&search={name}"
@@ -24,7 +24,10 @@ def get_games(name: str) -> list[tuple[str, int]]:
24
25
data = rs.json()
26
27
- return [(game["title"], game["price"]["amount"]) for game in data["products"]]
+ return [
28
+ (game["title"], game["price"]["amount"])
29
+ for game in data["products"]
30
+ ]
31
32
33
if __name__ == "__main__":
0 commit comments