subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 686 forks source link

how to use proxy #1193

Closed shaohuanews closed 1 year ago

shaohuanews commented 1 year ago

I'm trying to use proxy to login, the way i do is something like: self.client = Client() self.client.set_proxy(f"http://{username}:{passward}@{ip}:{port}") self.client.login(username="xxx", password="xxx")

I tried several different proxies, but none of them working. Is there any suggestion on the proxy selection and way to use it?

adw0rd commented 1 year ago

Maybe the problem is in passward?

adw0rd commented 1 year ago

Works fine

image

This example uses proxies from WebShare: https://github.com/adw0rd/instagrapi/discussions/434