Giter Club home page Giter Club logo

Comments (3)

alzamer2 avatar alzamer2 commented on August 24, 2024

i'm not of developer of this code, but an cast some light about your suggestions.
first 3rd solution: its easy to to do.
second 1st solution: its easy to do too, but will have same problem if you use multi accounts cross browsers, for example if you used account A in firefox and account B in chrome and both of theirs cookies did not expire it will always return account A as load() use loop in which chrome is first of the list and firefox is last so if cookie exist in firefox (and implying this solution is valid) it will return firefox cookie
lastly 2nd solution: this is very hard if not impossible, because this code return the cookies in default python urllib2 (the base that other module use to connect to internet like requests) format aka cookiejar methods, which use domain name as key, so the best solution is to create variable for browser that you want (firefo_cookies, chrome_cookies...etc) then chose the variable that you want.

from browser_cookie3.

alzamer2 avatar alzamer2 commented on August 24, 2024

i was doing some test and found out that even 1st solution is hard (not very hard) because cookies don't expire at same time (for example cloudflare cookies expire super fast) and some sensitive (like auth cookies) can become invalid if use use cookies from multi browser (something to do with useragent)

and as i mentioned in other post its better to use multi variable as cloudflare cookies will be invalid if you used wroung user agent (like using chrome useragent with firefox cloudflare cookies)

from browser_cookie3.

elnigno avatar elnigno commented on August 24, 2024

I am experiencing the same problem.

How about modifying load() (or adding a new method like load_all() or something) that returns a dictionary of cookie jars? One entry per browser for which it could find cookies.

That would make it easier for the user to iterate through the cookies of different browsers.

from browser_cookie3.

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.