Danie1 / threads-api

Unofficial Python API for Meta's Threads App
https://pypi.org/project/threads-api/
MIT License
108 stars 15 forks source link

instagram blocked my IP #34

Closed almaz5000 closed 11 months ago

almaz5000 commented 12 months ago

After the fourth run of the get_user_id_from_username method, the script throws the following exception: instagram.exceptions.ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared) is there any support for authorization by sessions?

Danie1 commented 12 months ago

Hey, I'm sorry to hear that. Our token caching does help in this aspect, which already exists in the latest versions. Be sure to always use it when possible.

I will make efforts to incorporate more functionality in this domain in threads-api, it's indeed crucial.

Danie1 commented 11 months ago

Thanks to https://github.com/Danie1/threads-api/releases/tag/v1.1.10 it is now possible to create custom http client sessions. This will allow you to use the same session all the way / implement your own + use an HTTP_PROXY.

I'm using the same token for more than 24hrs, so I login only once a day at the very most. I suggest you do the same.