git p# python-gmailFetcher
Fetch all gmails as htmls.
I am using python version=3.9.
If you are having problem using pip install use this following commands: pip3 install --upgrade -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --packagename
- Install python version3.9 on your device.
- Create a folder and pull the repo with command :
git clone https://github.com/sammyview80/python-gmailFetcher
- cd directory
- Create a python environment with command:
python3 -m venv name-env
. - Install all dependency with command:
pip3 install -r requirements.txt
- Create a credentials.json file on root directory. credential.json file is downloaded from
https://console.cloud.google.com/apis/credentials
create credential for OAurh2.0 Client. - Create and .env file with
SCOPES = https://www.googleapis.com/auth/gmail.readonly
- Run python3.9 setup.py install
- Run Python3.9 main.py
- Enable the Gmail API: Goto
https://console.cloud.google.com
Login with the google account you want. - Download a credentials.json file and store in program root directory
DOWNLOAD JSON
.
Here I have used my package: https://github.com/sammyview80/converter for conversion for ppt/doc/docx to pdf.