Skip to content
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

persist cookies to file, commands for working with groups #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

neon-ninja
Copy link

Hi Chris!

Thanks for making this open source. Currently, garc will trigger a login each time it's run. If garc is run frequently, requests to https://gab.com/auth/sign_in can trigger Cloudflare's browser check, preventing the login. This commit will make it so that garc saves cookies after login to a file, in Netscape format. The file will be located adjacent to the config file (~/.garc by default), with the extension _cookies.txt (so ~/.garc_cookies.txt by default). The cookies file would then be used on the next run. As an added benefit, a user could use an extension like https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid?hl=en to export their cookies from their browser and use those.

Take a look and let me know what you think

@neon-ninja
Copy link
Author

stanfordio/gabber#8 seems to have an alternative way of solving this

@neon-ninja neon-ninja changed the title persist cookies to file persist cookies to file, commands for working with groups Aug 10, 2022
@neon-ninja
Copy link
Author

PR amended to add commands for working with groups, hope you don't mind me bundling these features together

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant