Fun with Twitterbots!

You’re closer than you think to a career in tech. Our grads have launched rewarding new careers — you can too.

View Our Jobs Report

The following is a guest post by Joe Giralt and originally appeared on his blog. Joe is currently a student at The Flatiron School. You can follow him on Twitter here.

So sometime last week a friend asked me to to help her make a twitter bot that would help win a contest by the number of “#” tag references to a particular subject. I don’t to blow up her spot so lets just say the hash tag reference was to #riggingthevote.

Here the the code I used to do that

Blog post image: tumblr_inline_mq19lwB8Ax1qz4rgp.png

First things first, twitter is actually pretty smart at catching bots. I actually got a dummy account suspended because I made too many references in a row to the same hash tag in a too short period of a time.

Also, if you post too often you’ll reach your “daily limit” so one should be patient. Anything under 15 seconds will get you booted.

Instructions below

Step one

Get a dummy twitter account.

Step Two

goto and get a development account. Make sure to apply for a consumer key and authorization tokens

Step Three 

Modify and then run the code  above and run the script. Make sure to include your own text file that gabbler can go through. Half the fun is how nonsensical random sentences are when taking out of context.

Blog post image: tumblr_inline_mq19mlKZHT1qz4rgp.png


Headshot of Flatiron School

Flatiron School

Blog Post Author

Read More Flatiron School Articles

Since we opened our doors in 2012, thousands of students have joined Flatiron School to launch new careers in tech.

Explore our Courses

Find the perfect course for you across our in-person and online programs designed to power your career change.

Explore Our Courses
Join a Community

Connect with students and staff at meetups, lectures, and demos – on campus and online.

Join the Community
Schedule a Chat

Have a question about our programs? Our admissions team is here to help.

Schedule a Chat