Parsing emails to extract contact information from its body
Parse email bodies to extract contact info
Refer to the below link before you try to run the code.
https://developers.google.com/gmail/api/quickstart/python
Follow steps 1 and 2. Step 3 is included in the code