Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

use cookie from default browser #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yhcharles opened this issue Oct 16, 2017 · 5 comments
Closed

use cookie from default browser #71

yhcharles opened this issue Oct 16, 2017 · 5 comments

Comments

@yhcharles
Copy link

Is it possible to use cookie of system default browser?
So that we can use leetcode client while keeping login status in the browser.

@yhcharles
Copy link
Author

I think that should be possible, as this package does:
https://www.npmjs.com/package/chrome-cookies

@skygragon
Copy link
Owner

sounds useful if workable for different version of chrome. Is there an alternative for firefox as well?

@yhcharles
Copy link
Author

there is a python package works for Chrome and Firefox:
https://github.com/borisbabic/browser_cookie3

skygragon added a commit to skygragon/leetcode-cli-plugins that referenced this issue Dec 22, 2017
* inspired by skygragon/leetcode-cli#71

Signed-off-by: Eric Wang <skygragon@gmail.com>
skygragon added a commit that referenced this issue Dec 23, 2017
* refs #71: prepare for cookie.chrome plugin.

Signed-off-by: Eric Wang <skygragon@gmail.com>
skygragon added a commit to skygragon/leetcode-cli-plugins that referenced this issue Dec 24, 2017
* refs skygragon/leetcode-cli#71

Signed-off-by: Eric Wang <skygragon@gmail.com>
@skygragon
Copy link
Owner

@yhcharles please try to the latest leetcode-cli and cookie.chrome plugin. You might wanna check https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md first.

$ npm install -g skygragon/leetcode-cli
$ leetcode-cli plugin -i cookie.chrome -v

If succeed, try to login leetcode.com in your chrome browser, wait a bit and login in leetcode-cli again. We are expecting that both sessions are all functional in the same time.

@yhcharles
Copy link
Author

Good job! It works!

15cm pushed a commit to 15cm/leetcode-cli that referenced this issue Jun 13, 2018
* refs skygragon#71: prepare for cookie.chrome plugin.

Signed-off-by: Eric Wang <skygragon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants