Fun with Twitterbots!
First things first, twitter is actually pretty smart at catching bots.
Reading Time 1 min
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
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.
Get a dummy twitter account.
goto https://dev.twitter.com/ and get a development account. Make sure to apply for a consumer key and authorization tokens
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.
Posted by Flatiron School / July 16, 2013
Learn to Code Python: Free Lesson for Beginners
What is the difference between a data analyst and a data scientist?
While data analyst and data scientist roles attract similar types of creative and logical people, their roles do have stark differences. Here’s our breakdown of the lines between these often mixed up roles.