-1

Is there any possible way to use the Twitch.tv API with Python 3? It looks to be prepared for another language but I've been spending a lot of time learning Python.

apbassett
  • 160
  • 1
  • 6
  • 14

2 Answers2

1

Install it with pip3 install python-twitch and read the formal documentation here.

Forge
  • 6,538
  • 6
  • 44
  • 64
1

Yeah you can import requests which is a great module to deal with api's. Here is more documentation on it.

import requests

r = requests.get('https://api.github.com/user', auth=('user', 'pass'))

r.status_code

r.headers['content-type']

r.encoding

r.json()

source: http://docs.python-requests.org/en/master/

kpo1
  • 63
  • 2
  • 13