jlobos / instagram-web-api

🤳 Instagram Private Web API client for Node
https://npmjs.com/instagram-web-api
MIT License
1.12k stars 185 forks source link

Config a proxy with user and passwords #243

Closed DerLomo closed 1 year ago

DerLomo commented 3 years ago

I know that is defined in the docs how to config a proxy, but when the proxy comes with user and passwords is not defined, Does anybody know how to config in this case?

MonsieurBibo commented 3 years ago

I don't use proxies but I think you can use your credentials in the proxy's url like this.

raginisahu commented 3 years ago

You can use the proxy like this

const client = new Instagram({ username, password },{proxy: 'http://username:password@proxyurl:proxyport'})

username, password, proxyurl and proxyport need to be change respectively.