adsnash / autounsubscriber Goto Github PK
View Code? Open in Web Editor NEWA python script to unsubscribe from junk email and clear out your inbox
A python script to unsubscribe from junk email and clear out your inbox
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.