Giter Club home page Giter Club logo

Comments (4)

jpchip avatar jpchip commented on August 15, 2024

Unfortunately I really don't think this is possible, since puppeteer opens a new unique instance of chrome every time, it won't remember cookies.

from giveaway-grabber.

jpchip avatar jpchip commented on August 15, 2024

ack, spoke too soon, it might be possible: https://stackoverflow.com/questions/48608971/how-to-manage-log-in-session-through-headless-chrome

from giveaway-grabber.

jpchip avatar jpchip commented on August 15, 2024

I've played around with this a little, and I think the suggestion in that stack overflow works, but it seems to have some weird and unintended side effects that I'd need to handle. If you want to experiment with it for now, open the index.js and update line 24 like:

const browser = await puppeteer.launch({ headless: false, userDataDir: "./user_data" });

This should save your session and cookies, so it should remember your 2fa preferences. The problem is since it thinks you are logged in, it goes to a different log in page then normal, which only asks for your password, so you'll have to manually enter it! 🙄

from giveaway-grabber.

jpchip avatar jpchip commented on August 15, 2024

This should be resolved with latest release. Set remember_me flag to true and it will only ask you for your 2fa once.

from giveaway-grabber.

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.