I made a bot that retweets #poopin
#How Did I Do It I did it in python, using the tweepy library. It was the first project in which I used oAuth and the first time I’d ever deployed anything on Heroku.
I create a standard output listener class passing in tweepy’s Streamlistener. When it receieves any kind of data (ie: when someone tweets #poopin), it first checks if the tweet didn’t come from @hashtagpoopin (#poopin back and forth forever), then it retweets using the tweet ID.
Then, I just create a variable for the listener and pass that in to the stream along with my oAuth details. Since I was filtering a public stream, I didn’t have to specify anything other than the term that I wanted my stream to filter by
#Why Did I Do It
First, I should explain the origin of #poopin.
At HeatSync, whenever someone would walk away from their computer leaving it unlocked and vulnerable, we would navigate to their twitter and post #poopin. It was hilarious, and acted as a friendly reminder to lock your devices. If I had wanted, I could have done something much more malicious to the unprotected computer. We are all on our computers daily, filling them with every aspect of our lives, and every scrap of private lives without concern for protection in the same way we have with physical objects. Much like locking your house to protect the items inside, you should lock your computer when you’re away.
tldr; Lock your fucking computer.