Giter Site home page Giter Site logo

activism-mail-bot's Introduction

Activism Mail Bot

In light of recent events, I have created this Python script to send emails (using the template from nomoreracistcops.github.io) to a list of 159 elected US officials.

The script sends a unique message to each lawmaker by varying sentence structures and switching out nouns, verbs, adverbs, and adjectives with synonyms.

This script only works for gmail accounts.

tl;dr to use the script, run python3 send.py or ./send.py in a terminal.

For a step-by-step walkthrough, see below. Please report bugs to [email protected]!

NOTE: there is a per-minute limit on SMTP messages sent via google's servers. to appease our corporate overlords, i've decreased the speed of our operations.

TODO List:

  • Setup Google OAuth2 so activism-mail-bot can use the gmail API instead of using SMTP.
  • Accept JSON input from a front-end service to make activism-mail-bot more accessible. Checkout la-mailer repo.

Installation

  • Install python3

  • git clone https://github.com/alandgton/activism-mail-bot.git

  • cd activism-mail-bot/

  • Mac Users: you'll need to install certificates for SSL to work

  • Turn Allow less secure apps to ON for your gmail account.

    • Be aware that this makes it easier for others to gain access to your account.
    • After running the script, you should switch this back OFF.
  • Run python3 send.py

    • If you want to use the ./send.py command, be sure to run chmod +x send.py beforehand
    • Enter your full name
    • Enter your gmail
    • Enter your gmail password (i'm not logging this anywhere or anything, feel free to look at my code if you're paranoid)
    • Enter the subject (title) of your emails. You can leave this blank if you want mailbot to randomly generate titles for you.
  • At the time of writing, this bot sends uniquely generated emails to 159 elected officials across the nation!

    • Please add more recipients! Create a PR or let me know if you would like to add to the default list
    • thank you for your time, we did some good work :^)
    • activism++
    • Please remember to switch Allow less secure apps to OFF.

Footnote

This is a critical time for the rights and freedoms that we cherish as American citizens. Check out this compilation of activism resources and notes (credit: Jemma Kwak)!

Listed below are organizations gladly accepting donations and petitions to sign.

activism-mail-bot's People

Contributors

alandgton avatar eugeneoh28 avatar rheasrivats avatar walidalbaki avatar

Watchers

James Cloos avatar

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.