Comments (6)
I don't think you can login like that, I think you need to get the cookie and use that?
You can use 615_import_firefox_session.py with Firefox to generate the session hash
from instaloader.
I don't think you can login like that, I think you need to get the cookie and use that? You can use 615_import_firefox_session.py with Firefox to generate the session hash
I'm sorry for late reply. I'm running my python project on AWS EC2. and I successfully logged in by manually injecting the session ID and csrf token into the project. ( used Chrome Developer tool and copied sessionID and csrf token).
But I wonder how can I automatically get a new session ID when previous session ID is expired.
Do you know a solution related to this?
from instaloader.
I don't think you can login like that, I think you need to get the cookie and use that? You can use 615_import_firefox_session.py with Firefox to generate the session hash
I'm sorry for late reply. I'm running my python project on AWS EC2. and I successfully logged in by manually injecting the session ID and csrf token into the project. ( used Chrome Developer tool and copied sessionID and csrf token). But I wonder how can I automatically get a new session ID when previous session ID is expired. Do you know a solution related to this?
I generate it on my PC, since you need a browser session to; and remotely upload it to my server. You could use my Powershell script here as a basis for doing this. I dont run it that often so I havent automated the process fully since I manually trigger Instaloader.
You could fully automate it and have your python script check the modified date/time of the session file if it hasnt been modified recently (your specified time) then wait / skip and try it again later
from instaloader.
Your answer was very helpful!
I would like to ask one last question.
Do you know how long sessionId is valid?
from instaloader.
Your answer was very helpful! I would like to ask one last question. Do you know how long sessionId is valid?
Not sure sorry. I typically update the session ID every day I use it though. I havent looked into the expiry time.
from instaloader.
Same issue on my side
@Jarsky is there a way to import my session from chromium instead?
from instaloader.
Related Issues (20)
- Post.accessibility_caption always returning None
- 429 error for getting likes HOT 8
- how do I use --fast-update command HOT 1
- Profile.mediacount mismatch when compared to the get_posts() set HOT 1
- How to get query_hash? HOT 1
- Errors or warnings occurred: profile: JSON Query to web/search/topsearch/: HTTP error code 401. HOT 4
- How do I --dirname-pattern "" but also do --fast-update? HOT 1
- V4.11rc2 still bugs about --login=user although --load-cookies edge is used
- Backup stories that are shared with logged-in user in a saved collection HOT 1
- Want to download 24h/7d/1m/1y content HOT 4
- get all external_url HOT 1
- Bio change
- Video not 1080 after redownload and change of pattern of file nomination, to 720.
- Check instagram profile's private or public HOT 3
- download_post won't take sub folder as param HOT 1
- gaierror/NewConnectionError/MaxRetryError/ConnectionError HOT 2
- Related to get likes HOT 1
- Failed to resolve 'scontent-sin6-4.cdninstagram.com' ([Errno -2] Name or service not known)")) HOT 2
- Instaloader doesn't seem to be working without a login anymore. Even after login in, I get signed out after one request. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instaloader.