I'm trying to use Python request library to scrap some data from Steam. But first I need to modify my URL
for example, if I want to access games with tags
- 2D [id : 3871]
- 1980s [id : 7743]
https://store.steampowered.com/search?tags=7743%2C3871
this is the link I need. But when I do this
steam_url = "https://store.steampowered.com/search?"
search = request.get(steam_url, params = {'tags' : [7743, 3871]})
I get this URL
https://store.steampowered.com/search?tags=7743&tags=3871
which is showing me only 2D games [id : 3871]
To solve this I tried to do this
steam_url = "https://store.steampowered.com/search?"
search = get(steam_url, params = {'tags' : '%2C'.join(list(map(str,[7743, 3871])))})
Then I get this URL
https://store.steampowered.com/search?tags=7743%252C3871
I couldn't understand why there is %252C between those ids.
What should I do?