Git Product home page Git Product logo

Comments (6)

Jarsky avatar Jarsky commented on June 3, 2024

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.

qjvk2880 avatar qjvk2880 commented on June 3, 2024

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.

Jarsky avatar Jarsky commented on June 3, 2024

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.

qjvk2880 avatar qjvk2880 commented on June 3, 2024

Your answer was very helpful!
I would like to ask one last question.
Do you know how long sessionId is valid?

from instaloader.

Jarsky avatar Jarsky commented on June 3, 2024

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.

jasursadikov avatar jasursadikov commented on June 3, 2024

Same issue on my side
@Jarsky is there a way to import my session from chromium instead?

from instaloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.