See my work
Emailing government officials and council members to reallocate egregious police budgets towards education, social services, and dismantling racial inequality can be time-consuming. Free up your time that can be better served by protesting, donating, or flooding social media.
This bot sends personalized emails to all the active links on Defund12.org in just a few clicks.
Note on Security:
I pinky promise on my momma that I cannot get your email info in any way from this. The actual code for the bot is only like 60 lines in the "defundEmailBot.py" file (the other files are basically just the equivalent of word documents and just hold text). All the bot does is connect to Googles email server (SMTP) with the info, so it knows that it is you and can automatically send the emails for you. Then it's just looping through the email messages for the cities and sending them.
Also, there is always the option of creating a new Gmail just for this (I did it to test the bot and it only takes about a minute) and then you know you have nothing to worry about :)
Written Directions (for Mac)
- Have a computer with Python (comes preinstalled on Macs) and a Gmail Account.
Also, if you have 2 Factor Authentication on for your Gmail turn it off (or use a Gmail that does not have 2FA turned on)
- Go to myaccount.google.com and click security on the menu to the left
- Scroll down to "Less secure app access" and turn this ON. (can turn it back OFF after the bot runs)
- Click the "Download Bot" on the download section of this website
- Drag the file onto your desktop
- Unzip the defundEmailBot folder
- On your desktop, open the unzipped folder and open the info.py file in a text editor (TextEdit on a mac)
- Fill in your info and save the file
- Open "Terminal" on Mac
- Type in "cd Desktop" and hit Enter
- Type in "cd defundEmailBot" and hit Enter
- Type in "python ./defundEmailBot.py" and hit Enter
- Check your sent emails.
How To Get It Working for PC
**Make sure you enable less secure apps on your google account first! (Steps 1-3 below)
Written Directions (for PC)
- Have a a Gmail Account and if it has 2 Factor Authentication ON then turn it OFF just while you run the bot (or use a gmail that does not have 2FA turned on)
- Go to myaccount.google.com and click security on the menu to the left
- Scroll down to "Less secure app access" and turn this ON. (can turn it back OFF after the bot runs)
- Now you have to download Python. Go to Python.org/downloads and click the big yellow "Download Python" button
- The installer will pop up on the bottom of your screen, click it twice.
- There will be a pop up that says "Install Python", MAKE SURE TO check the "Add Python 3.8. to PATH box
- Then click "Install Now" and wait for it to download. When it is done it should say "Setup was successful"
- On this website, go to the Download section and click "Download Bot"
- Drag the file onto your desktop
- Right click on the file you dragged and hover over "7-Zip" then click "Extract files..."
- Uncheck the box that has "defundEmailBot\" inside then press "Ok". Now you should have a folder on your Desktop called "defundEmailBot"
- Open the folder and right click on the "info" file.
- Scroll down to "Open with" and if "Notepad" is there click it. If "Notepad" is not there than click "Choose another app" then click "more apps". Now scroll until you find "Notepad" and click it.
- Fill in your info and save the file (you can do this with Ctrl + s)
- Now you can close the info file. Then, hit the windows button on your keyboard and type "command prompt" and click the application
- Type in "cd Desktop" and hit Enter. (If it gives you an error that says "System cannot find the path specified" then move the defundEmalBot folder into your Downloads then do "cd Downloads" and hit Enter instead)
- Type in "cd defundEmailBot" and hit Enter
- Type in "python ./defundEmailBot.py" and hit Enter
- Check your sent emails.
Things You Need First:
1. A computer with Python 2.7 downloaded (Python comes pre-installed on Macs)
2. A Gmail account