Twitch API keeps giving response 200 error when i use requests

url = requests.get("http://api.twitch.tv/kraken/streams/sololineabuse")
print url

<Response [200]>

Sometimes I get response 200 and sometimes i get response 400. Never does it not give me a response error. I’m not sure how I would check the error. I’m using python.

<Response [200]>
Your error code is right in front of you, though it is not an error. 200 means OK (See here)
You’re not printing out the response, but the request object.
Try print url.text, it should print out what you want to get <:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.