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

Ошибка 429 при загрузке лайков #50

Closed pavelpasha closed 5 years ago

pavelpasha commented 5 years ago

При вызове метода get_likes в половине случаев получаю ошибку: "Error by connection with Instagram to 'https://www.instagram.com/graphql/query/?query_hash=1cb6ec562846122743b61e492c85999f&variables=%7B%22shortcode%22%3A%22BxC2p73pVZh%22%2C%22first%22%3A50%7D' with response code '429'" Причем ошибка не привязана к конкретной медиа, при следующем запуске скрипта список лайков может вернуться без ошибки.

OlegYurchik commented 5 years ago

https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BA%D0%BE%D0%B4%D0%BE%D0%B2_%D1%81%D0%BE%D1%81%D1%82%D0%BE%D1%8F%D0%BD%D0%B8%D1%8F_HTTP

OlegYurchik commented 5 years ago

Делайте задержки между запросами, чтобы не получать ограничения