'Params are ignored in my requests.get() in Python
I am new at programming and I am trying to make a request to an specific id using Python.
I tried this:
query={'id': '55311130'}
t = requests.get('https://api.imgflip.com/get_memes', params=query)
json_datas = t.json()
print(json_datas)
And this:
query={'data':{'memes':[{'id': '55311130'}]}}
t = requests.get('https://api.imgflip.com/get_memes', params=query)
json_datas = t.json()
print(json_datas)
But params keeps getting ignored and I get the whole page code. What am I doing wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
