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

Инстаграм ограничил доступ к данным #97

Open AzatKaparov opened 3 years ago

AzatKaparov commented 3 years ago

agent.get_media(acc) Traceback (most recent call last): File "/usr/local/lib/python3.8/code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in File "/usr/local/lib/python3.8/site-packages/pyinstagram/agents/utils.py", line 9, in wrapper return loop.run_until_complete(future) File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/usr/local/lib/python3.8/site-packages/pyinstagram/agents/async_web_account_agent.py", line 160, in get_media return await AsyncWebAgent.get_media(self, entity=entity, pointer=pointer, count=count, File "/usr/local/lib/python3.8/site-packages/pyinstagram/agents/async_web_agent.py", line 168, in get_media data = await self.update(entity=entity, settings=settings) File "/usr/local/lib/python3.8/site-packages/pyinstagram/agents/async_web_account_agent.py", line 154, in update return await AsyncWebAgent.update(self, entity=entity, settings=settings) File "/usr/local/lib/python3.8/site-packages/pyinstagram/agents/async_web_agent.py", line 144, in update data = entity.get_from_web_entry_data_path(data["entry_data"]) File "/usr/local/lib/python3.8/site-packages/pyinstagram/entities.py", line 47, in get_from_web_entry_data_path data = data[key] KeyError: 'ProfilePage'

Пробовал и с WebAgent и с WebAccountAgent но и то и то выдаёт ошибку. Инстаграм ввёл обновление по которому теперь агенты не могут вытянуть данные. Или может я неправильно авторизуюс? Просто с выходом обновления документация не была обновлена.

Делал я это так: from pyinstagram import WebAccountAgent, Account akk = Account(...) # мой username agent = WebAccountAgent(...) # username agent.login(...) # мой пароль agent.get_media(akk) И здесь ошибка

big-arturka commented 3 years ago

+++

grafist02511 commented 3 years ago

не робит