takeontom / PyPeri

Use Periscope with Python
MIT License
3 stars 2 forks source link

KeyError: 'Tracking' #105

Open Marcaf opened 7 years ago

Marcaf commented 7 years ago

Hi this lib doesn't work for me

Python 3.5.3 (default, Sep 14 2017, 22:58:41) 
[GCC 6.3.0 20170406] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyperi import Peri
>>> pp = Peri()
>>> history = pp.get_user_broadcast_history(username='george_clinton')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/pyperi/pyperi.py", line 45, in get_user_broadcast_history
    user_id, username
  File "/usr/local/lib/python3.5/dist-packages/pyperi/pyperi.py", line 77, in get_web_public_user_session_tokens
    out = {'user_id': data_store['Tracking']['userId']}
KeyError: 'Tracking'
trgcyln commented 6 years ago

I think periscope changed the stucture of the json.