Is there a way to initialize/authenticate the client without username & password?
Please follow the guide below
- Issues submitted without this template format will be ignored.
- Rlease read them carefully and answer completely.
- Do not post screenshots of error messages or code.
- Put an
xinto all the boxes [ ] relevant to your issue (==> [x] no spaces). - Use the Preview tab to see how your issue will actually look like.
- Issues about reverse engineering is out of scope and will be closed without response.
- Any mention of spam-like actions or spam-related tools/libs/etc is strictly not allowed.
Before submitting an issue, make sure you have:
- [x] Updated to the lastest version v1.6.0
- [x] Read the README and docs
- [x] Searched the bugtracker for similar issues including closed ones
- [x] Reviewed the sample code in tests and examples
Which client are you using?
- [] app (
instagram_private_api/) - [x] web (
instagram_web_api/)
Describe your Question/Issue:
I can login with username and password and then don't need them anymore after I save the settings. No problem with that. I wonder if there is a way to authenticate the user in the initial login without username and password? Maybe by using some cookie values and passing them into the client. Couldn't figure out a way to do this.
---Paste the output of python -V here:
Python 3.6.10 :: Anaconda, Inc.
Code:
# Example code that will produce the error reported
from instagram_web_api import Client
web_api = Client()
user_feed_info = web_api.user_followers('1234567890', count=10)
``
Hello, Yes, Instagram has an endpoint to login with cookie, I wrote a Chrome extension to get Insta cookie from browser and save it in local storage then I can read cookie in my web app and send it to Insta private api to login without getting username and password. I'm using this repo . this library has a method called LoginWithCookie so private api can handle this process, I dont know this repo has this method or no, Anyway you can do it.
https://www.instagram.com/___.k.19?igsh=NWEyajYydnZuZWs=
https://www.instagram.com/___.k.19?igsh=NWEyajYydnZuZWs=