OlegYurchik / pyInstagram

This is a simple and easy-to-use library for interacting with the Instagram. The library works through the web interface of the Instagram and does not depend on the official API
MIT License
232 stars 49 forks source link

Error: 'rhx_gis' #53

Closed almaz5000 closed 5 years ago

almaz5000 commented 5 years ago

Добрый день. Подскажите пожалуйста как исправить ошибку?

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/instaparser/agents.py", line 46, in update
self.rhx_gis = data["rhx_gis"]
KeyError: 'rhx_gis'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/top/b.py", line 36, in <module>
 agent = Agent()
 File "/usr/local/lib/python3.5/dist-packages/instaparser/agents.py", line 24, in __init__
 self.update(settings=settings)
 File "/usr/local/lib/python3.5/dist-packages/instaparser/exceptions.py", line 105, in wrapper
 raise exception
 File "/usr/local/lib/python3.5/dist-packages/instaparser/exceptions.py", line 100, in wrapper
return func(obj, *args, **kwargs)
 File "/usr/local/lib/python3.5/dist-packages/instaparser/agents.py", line 59, in update
 raise UnexpectedResponse(exception, response.url)
instaparser.exceptions.UnexpectedResponse: Get unexpected response from 'https://www.instagram.com/'
Error: 'rhx_gis'
OlegYurchik commented 5 years ago

Скачайте последнюю версию

almaz5000 commented 5 years ago

Скачайте последнюю версию

Последняя версия стоит, проблема не пропала

OlegYurchik commented 5 years ago

Строка 46 отличается от той, что находится в последней версии в репозитории. https://github.com/OlegYurchik/pyInstagram/blob/master/instagram/agents.py#L46