I am trying to make a twitter bot that uses requests library to get data from nytimes api.
There is a line in the code
resp = requests.get(API_ENDPOINT, my_params)
Now this works very well when I run it locally. So I uploaded it to pythonanywhere. The moment I tried to run it I got this error:
resp = requests.get(API_ENDPOINT, my_params)
TypeError: get() takes exactly 1 argument (2 given)
What is happening? I have started using requests as well as pythonanywhere recently. So I have literally no idea where to start debugging.
Aucun commentaire:
Enregistrer un commentaire