Before start executing the project please read the billow
This project contains two scripts fetch_gmail.py
and api.py
. The fetch_gmail.py
allows you to fetch the data from users email account and store them in SqLite database, api.py
allows users to do modifications on the fetched email.
Creating a virtual env with python 3 is highly recommended
-
Install packages:
$ pip install -r requirement.txt
-
Enable the Gmail API
- Navigate to the following link and enable Gmail api and download the
credentials.json
file and place it inside the project directory. click here
- Navigate to the following link and enable Gmail api and download the
-
First run the file
fetch_gamil.py
$ python fetch_gmail.py
-
Second run the file
api.py
$ python api.py
-
You can find the api details in the following postman collection link, click here