Skip to content

A Python-based toolkit for efficient Gmail label management and email processing. It simplifies fetching and exporting emails by labels, making it ideal for automation and data extraction tasks.

License

SokinjoNS/gmail-label-email-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gmail Label Email Processor

The Gmail Label Email Processor is a Python toolkit designed to automate the process of managing and processing emails through the Gmail API. This tool facilitates the fetching of emails based on specific labels, extraction of email addresses from these emails, and exporting the processed data into a CSV file for further analysis or use. Ideal for individuals and businesses looking to enhance their email management and data extraction workflows.

Features

  • Authenticate with the Gmail API securely.
  • Fetch emails by user-defined labels.
  • Extract 'To', 'Cc', and 'Bcc' email addresses from emails.
  • Export extracted email addresses to a CSV file.
  • Simplify the automation of email processing tasks.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.6 or higher installed on your machine.
  • Access to a Google Cloud Platform account with the Gmail API enabled.
  • A credentials.json file obtained from the Google Developer Console for your Gmail API project.

Installation

From GitHub

Clone and install dependencies:

git clone https://github.com/SokinjoNS/gmail-label-email-processor.git
cd gmail-label-email-processor
pip install -r requirements.txt

From PyPI

Install directly:

pip install gmail-label-email-processor

Usage

After installation, configure credentials.json in the project's root and modify main.py or use the command-line interface:

gmail-processor --label "Your Label Name"

Replace "Your Label Name" with the actual label you're interested in.

Place your credentials.json file in the root directory of the project.

Contributing

Contributions are welcome.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Python-based toolkit for efficient Gmail label management and email processing. It simplifies fetching and exporting emails by labels, making it ideal for automation and data extraction tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages