Skip to content
Advertisement

Python requests.get of link, passed in a for, gets always the same content of the first link

I’m trying to make a for loop of links that are opened and from which I then retrieve data; right now I have the problem that at every cycle it always retrieves the same page (the first one) even though I change the link every time.

JavaScript

Advertisement

Answer

Try to remove idCategory=5&idExpansion=1178 from the filterURL:

JavaScript

Prints:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement