GithubHelp home page GithubHelp logo

salaah01 / email-unsuber Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 38 KB

This program will parse through your emails and collect a list of unsubscribe links and output them into a CSV, XLSX (Excel) or JSON.

License: MIT License

Python 94.56% Shell 2.78% PowerShell 2.66%
python email python3

email-unsuber's Introduction

Collect Unsubscribe Links

Description

This program will parse through your emails and collect a list of unsubscribe links and output them into a CSV, XLSX (Excel) or JSON.

Unlike some tools which you may come across on the internet we do not store any of your details, and this is why this tool needs to be downloaded and run manually.

The program will require you to enter your email address and password and then will parse through each email in your inbox looking for unsubscribe links. It will collect each link and output them into a file.

The program will not however click on each link for you attempting to unsubscribe on your behalf. This is done purely to prevent clicking on unsafe links. The file therefore will contain the sender email as well to help you search for the email should you wish to check the email before clicking on any link.

Installation

Platform Method
Windows Download and run collectUnsubs.exe
Mac Not supported yet
Linux Download and run collectUnsubs

Running from Source

If you wish to run the program directory without running a binary, please follow the instructions below. The only requirement is Python3.

  1. Fork and clone the directory.
  2. cd src
  3. Create a virtual environment (e.g: python3 -m venv venv)
  4. Activate virtual environment. Windows: venv\Scripts\activate Linux: . venv/bin/activate
  5. pip install -r requirements.txt
  6. python collect_unsubs.py

The program will require some arguments to be set when running the program.

  -h, --help            show this help message and exit
  -e EMAIL, --email EMAIL
                        Email address
  -c EMAIL_ENV, --email-env EMAIL_ENV
                        Name of environment variable containing the email address
  -d EMAIL_FILE, --email-file EMAIL_FILE
                        Path to file containing email address.
  -p PASSWORD_ENV, --password-env PASSWORD_ENV
                        Name of environment variable containing password.
  -f PASSWORD_FILE, --password-file PASSWORD_FILE
                        Path to file containing password.
  -t {csv,xlsx,json}, --filetype {csv,xlsx,json}
                        Output file type.
  -o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
                        Directory of where the file should be stored.
  -v VERBOSE, --verbose VERBOSE
                        Output error messages.

Supported Mail Servers

  • Gmail
  • Outlook/Hotmail
  • Yahoo

Don't see your mailing server on the list? Create an issue with the mailing server you would like support for and I'll do my best to include it.

Troubleshooting

My password does not work

Because this program needs something called programmatic access, your mailing server may not allow your "normal" password to work. You would need to create a developer/application password for your mailing client.

This can be a bit frustrating, I know. But I am adamant to make this tool one where you have full control of your data and account. There is a way around it, but it would mean that I would need to host the tool online somewhere, and I would need to request your mailing server to provide me with information relating to your inbox. Yes, that would mean that I could potentially read your emails. Yikes! Let's be honest, you don't want that do you?

The option to create the application password should be in your security options, if you need help, please raise an issue and I'll do my best to help you.

email-unsuber's People

Contributors

salaah01 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

heyasmin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.