Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tubaman/google-login
Simple python script that logs in to your Google account and saves the cookies
https://github.com/tubaman/google-login
Last synced: about 2 months ago
JSON representation
Simple python script that logs in to your Google account and saves the cookies
- Host: GitHub
- URL: https://github.com/tubaman/google-login
- Owner: tubaman
- License: mit
- Archived: true
- Created: 2016-03-07T04:22:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-07T18:42:49.000Z (about 8 years ago)
- Last Synced: 2024-04-06T21:38:40.545Z (6 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# google-login
Here's a simple python script that logs in to your Google account and
saves the cookies that you can then use with curl, python-requests or
whatever.## Dependencies
We use buildout to handle all the dependencies. Just run:
```shell
python bootstrap.py
./bin/buildout
export PATH=$PWD/bin:$PATH
```## Example
Put your Google credentials in your `$HOME/.netrc` file:
machine google.com login [email protected] password examplepassword
Then run the following command on the command line:
./bin/python googlelogin.py --url http://gmail.com cookies.txt
Next, use that cookies.txt with curl, wget or whatever.
### Why didn't you create a normal python package on pypi?
I use selenium and phantomjs for the Google login which requires nodejs so a
pure python solution wouldn't work. Instead of a standard python egg
installable via pip, I use buildout.