ingwinlu / python-twitch

python-twitch is an python module for simple interaction with twitch.
http://ingwinlu.github.io/python-twitch/
GNU General Public License v3.0
34 stars 17 forks source link

No longer functions #334

Open zeshinsei opened 4 years ago

zeshinsei commented 4 years ago

I assume this is related to v3 being replaced. Will this be updated to support the current API?

>>> twitch.api.v3.streams.all(game='Final Fantasy XIV')
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/twitch/queries.py", line 64, in execute
    return f(self.url, self.params, self.headers)
  File "/usr/local/lib/python3.6/site-packages/twitch/scraper.py", line 26, in get_json
    jsonString = download(baseurl, parameters, headers)
  File "/usr/local/lib/python3.6/site-packages/twitch/scraper.py", line 59, in download
    raise
RuntimeError: No active exception to reraise

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/twitch/queries.py", line 127, in wrapper
    return qry.execute()
  File "/usr/local/lib/python3.6/site-packages/twitch/queries.py", line 78, in execute
    return super(JsonQuery, self).execute(get_json)
  File "/usr/local/lib/python3.6/site-packages/twitch/queries.py", line 66, in execute
    raise ResourceUnavailableException(str(self))
twitch.exceptions.ResourceUnavailableException: Query to https://api.twitch.tv/kraken/streams, params {'game': 'Final Fantasy XIV'}, headers {'ACCEPT': 'application/vnd.twitchtv.v3+json', 'Client-Id': 'removed'}