Giter VIP home page Giter VIP logo

autounsubscriber's Introduction

This program is an email auto-unsubscriber. Depending on your email provider and settings, it may require you to allow access to less secure apps.

It uses IMAP to log into your email. From there, it goes through every email with "unsubscribe" in the body, parses the HTML, and uses regex to search through anchor tags for keywords that indicate an unsubscribe link (unsubscribe, optout, etc). If it finds a match, it grabs the href link and puts the address and link in a list.

After the program has a list of emails and links, for each address in the list, it gives the user the option to navigate to the unsubscribe link and to delete emails with unsubscribe in the body from the sender. 

Once the program finishes going through the list, it gives the user the option to run the program again on the same email address, run it on a different email address, or quit the program.

autounsubscriber's People

Contributors

adsnash avatar

Stargazers

Larah Armstrong avatar  avatar  avatar  avatar Derek Ogletree avatar Jimmy Briggs avatar Billaud Victor avatar David Sadler avatar Chris Muir avatar zack henson avatar justin avatar Dylan Layton avatar  avatar  avatar Ophiel avatar  avatar Justin Knox avatar Nicolás Pace avatar Alex Lemna avatar  avatar Denis Bessa avatar Freddie avatar James Bolding avatar  avatar Rocco Palladino avatar  avatar Kay Jey avatar Anmol Srivastava avatar Besnik Nuro avatar Charlie Ciampa avatar Ben Oldham avatar Subbu avatar Alessandro Menduni avatar  avatar Daniel Navarro avatar Uğur Arıcı avatar  avatar Christian Bagley avatar

Watchers

Justin Knox avatar

autounsubscriber's Issues

Only executes to "Looks like you're using a (server) account"

Hello! I'm super interested in using this code for my Gmail account. I tried to run it but I couldn't get the output to go beyond the point where I entered my email address and hit 'enter'

So...

Line 60 self.password = getpass.getpass('Enter password for ' + self.email + ': ')

never appears in the output; and the program seems to stop here.

I have just started (like last week) trying to learn Python (my first programming language). Any missteps I've made here in how I post or ask questions is evident of my 'newbie-ness'. Appreciate any rope you can give me for that! =) Thanks and Happy New Year!

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.