Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/czue/gmail-tools
Tools for querying your gmail inbox.
https://github.com/czue/gmail-tools
Last synced: 16 days ago
JSON representation
Tools for querying your gmail inbox.
- Host: GitHub
- URL: https://github.com/czue/gmail-tools
- Owner: czue
- Created: 2014-07-18T17:19:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-15T11:40:27.000Z (almost 8 years ago)
- Last Synced: 2023-03-11T04:29:47.354Z (almost 2 years ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gmail-tools
Tools for querying your gmail inbox.
Right now this just supports passing in a search term to your inbox, and dumping the results in a machine readable csv format for future analysis,
as well as some simple stats (messages by date and username).
There are multiple output files.## Setup
See the quickstart guide for instructions on how to get setup with a gmail developer app: https://developers.google.com/gmail/api/quickstart/quickstart-python. When setting up your OAuth credentials, set Redirect URIs to 'http://localhost:8080/'.
Save the authentication file you download as `client_secret.json`.
Run!
## Usage
This is the structure of a query:
```
./main.py [gmail search query] [max results] [filename]
```For example, to find the last 1000 messages to a particular label in your inbox you could run:
```
./main.py label:my-label 1000 mylabel-dump.csv
```