• Corrina Crazie Espinosa

Twitter Bots

Updated: Nov 5


For this project you must create a twitter bot, to make your twitter bot follow the following steps:


Step 1: Twitter Account

Go to twitter and make an account. You may want to start by making a new email address that is specifically for your twitter bot, so that the twitter bot is not linked to your personal email account. Pick a unique handle that captures the personality of you twitter bot. Create a bio, and a profile picture. Now you are ready to make your bot!


Step 2: Cheap Bots Done Quick

Go to Cheap Bots Done Quick and sign in using your new twitter account credentials. Now it's time to write your code. Your code will consist of 2 main things, origin sentences and word lists.


Step 3: Origin Sentences

An origin sentence sets up the basis of a tweet, with fill in the blanks under certain categories (nouns, adjectives, verbs, colors, food, celebrities, people, etc.) similar to Mad Libs.


Here is an example of an origin sentence:

"Bill Murray said the strangest thing today, and now I feel like crying."


Now I will replace some of the words with categories-- we must put a # symbol before and after the category for the code to work properly.

Bill Murray = #celebrity#

strangest = #adjective#

today = #time#

crying = #emotion#


The new sentence written in code looks like this:

"#celebrity# said the #adjective# thing #time#, and now I feel like #emotion#."


Make at least 8 of these origin sentences. The more origin sentences the better, it will me more variety for your bots tweets, and the more variety the better your bot will be.


Here are a few more examples of origin sentences:

  • "DAMN! I stubbed my little toe on the table and I need to go to the hospital."

  • "#expression#! I #action# my #adjective# #body_part# on the #thing# and I need to go to the #place#."


  • "OMG! My mom forgot to call me and I was late for school!"

  • "#expression#! My #family_member# forgot to #action# and I was late for #place#!"


  • "I'm so hungry I could eat a cow!"

  • "I'm so #pysical_state# I could #action# a #animal#!"


Step 4: Word Lists

Now that we have an origin sentence, we need to create word lists for each of the categories we have created.

Here are the categories we have assigned:


  • "celebrity"

  • "adjective"

  • "time"

  • "emotion"

  • "expression"

  • "action"

  • "body_part"

  • "thing"

  • "place"

  • "family_member"

  • "pysical_state"

  • "animal"

For each category we must make a list of as many words as we possibly can, the more words, the more variety and the better the tweets your bot will put out.


Here is a very long list of words for the category called "celebrity":

"celebrity": [

"Adam Lambert",

"Adam Levine",

"Adam Sandler",

"Adele",

"Alanis Morissette",

"Alec Baldwin",

"Alicia Keys",

"Alicia Silverstone",

"Alyssa Milano",

"Amanda Bynes",

"Amy Winehouse",

"Angelina Jolie",

"Anna Nicole Smith",

"Anne Hathaway",

"Ariana Grande",

"Arnold Schwarzenegger",

"Ashlee Simpson",

"Ashley Judd",

"Ashley Olsen",

"Ashton Kutcher",

"Avril Lavigne",

"Barack Obama",

"Barbara Walters",

"Ben Affleck",

"Ben Stiller",

"Betty White",

"Beyoncé Knowles",

"Billy Bob Thornton",

"Billy Ray Cyrus",

"Bobby Brown",

"Brad Pitt",

"Bristol Palin",

"Britney Spears",

"Brittany Murphy",

"Brooke Shields",

"Bruce Jenner",

"Bruce Willis",

"Bruno Mars",

"Caitlyn Jenner",

"Cameron Diaz",

"Carmelo Anthony",

"Carmen Electra",

"Carrie Underwood",

"Carson Daly",

"Cate Blanchett",

"Catherine Zeta-Jones",

"Cee Lo Green",

"Celine Dion",

"Chad Kroeger",

"Charlie Sheen",

"Chelsea Clinton",

"Cher",

"Chris Brown",

"Christian Bale",

"Christian Slater",

"Christie Brinkley",

"Christina Aguilera",

"Christina Applegate",

"Ciara",

"Cindy Crawford",

"Claire Danes",

"Colin Farrell",

"Conan O'Brien",

"Courteney Cox",

"Courtney Love",

"Criss Angel",

"DJ AM",

"DJ Cassidy",

"DJ Kiss",

"DJ Pauly D",

"Dakota Fanning",

"Dane Cook",

"Dave Navarro",

"David Beckham",

"David Copperfield",

"David Letterman",

"David Schwimmer",

"David Spade",

"Demi Lovato",

"Demi Moore",

"Denis Leary",

"Denise Richards",

"Dennis Rodman",

"Diddy",

"Dolly Parton",

"Donald Trump",

"Dr. Dre",

"Dr. Phil McGraw",

"Drake",

"Drew Barrymore",

"Dwayne Johnson",

"Eddie Murphy",

"Ellen DeGeneres",

"Elton John",

"Emilio Estevez",

"Eminem",

"Ethan Hawke",

"Faith Hill",

"Fantasia Barrino",

"Farrah Abraham",

"Fergie",

"Fleetwood Mac",

"Floyd Mayweather",

"Foo Fighters",

"Forest Whitaker",

"Frank Ocean",

"Frankie Muniz",

"Fred Durst",

"Freddie Prinze, Jr.",

"Garth Brooks",

"George Stephanopoulos",

"George Clooney",

"George Lopez",

"Goldie Hawn",

"Gwen Stefani",

"Gwyneth Paltrow",

"Halle Berry",

"Harrison Ford",

"Heath Ledger",

"Heather Locklear",

"Helen Hunt",

"Hilary Duff",

"Hilary Swank",

"Hillary Clinton",

"Howard Stern",

"Hugh Grant",

"Hugh Hefner",

"Hugh Jackman",

"Ivanka Trump",

"J-Woww",

"Jack Nicholson",

"Jackie Chan",

"Jada Pinkett Smith",

"Jaden Smith",

"Jamie Foxx",

"Janet Jackson",

"Jason Mraz",

"Jay Leno",

"Jay Z",

"Jennifer Aniston",

"Jennifer Garner",

"Jennifer Hudson",

"Jennifer Lopez",

"Jennifer Love Hewitt",

"Jenny McCarthy",

"Jerry Seinfeld",

"Jersey Shore",

"Jesse James",

"Jessica Alba",

"Jessica Simpson",

"Jim Carrey",

"Jimmy Buffett",

"Jimmy Fallon",

"Jimmy Kimmel",

"John Cusack",

"John F. Kennedy, Jr.",

"John Legend",

"John Mayer",

"John Stamos",

"John Travolta",

"Johnny Depp",

"Johnny Knoxville",

"The Jonas Brothers",

"Julia Roberts",

"Justin Bieber",

"Kanye West",

"Kate Hudson",

"Kate Middleton",

"Kathy Griffin",

"Katy Perry",

"Keanu Reeves",

"Keith Urban",

"Kelly Clarkson",

"Kelly Osbourne",

"Kelsey Grammer",

"Kenny Chesney",

"Kesha",

"Kevin Connolly",

"Kevin Durant",

"Kevin Federline",

"Kevin Hart",

"Keyshia Cole",

"Khloe Kardashian",

"Kid Rock",

"Kiefer Sutherland",

"Kim Cattrall",

"Kim Kardashian",

"Kirsten Dunst",

"Kirstie Alley",

"Kobe Bryant",

"Kourtney Kardashian",

"Lady Gaga",

"Lance Armstrong",

"Larry King",

"LeBron James",

"Lenny Kravitz",

"Leonardo DiCaprio",

"Lindsay Lohan",

"Lisa Marie Presley",

"Lorde",

"Lucy Liu",

"Ludacris",

"Madonna",

"Mandy Moore",

"Mariah Carey",

"Mario Lopez",

"Mark Wahlberg",

"Martha Stewart",

"Martin Lawrence",

"Mary J. Blige",

"Mary-Kate Olsen",

"Matt Damon",

"Matt Dillon",

"Matthew McConaughey",

"Meg Ryan",

"Megan Fox",

"Mel Gibson",

"Melissa McCarthy",

"Meryl Streep",

"Michael Bolton",

"Michael Bublé",

"Michael Jackson",

"Miley Cyrus",

"Ne-Yo",

"Neil Patrick Harris",

"Nelly Furtado",

"Neve Campbell",

"Nick Cannon",

"Nick Carter",

"Nicki Minaj",

"Nicolas Cage",

"Nicole Kidman",

"Nicole Richie",

"Oprah Winfrey",

"Owen Wilson",

"Ozzy Osbourne",

"Pam Anderson",

"Paris Hilton",

"Patrick Swayze",

"Paul McCartney",

"Paula Abdul",

"Penelope Cruz",

"Prince",

"Prince Charles",

"Prince Harry",

"Prince William",

"Princess Diana",

"Queen Latifah",

"Quentin Tarantino",

"Randy Jackson",

"Reese Witherspoon",

"Renee Zellweger",

"Richard Gere",

"Ricki Lake",

"Ricky Martin",

"Rihanna",

"Rob Kardashian",

"Rob Lowe",

"Robert Downey Jr.",

"Robin Thicke",

"Rosie O'Donnell",

"Rush Limbaugh",

"Russell Brand",

"Russell Crowe",

"Ryan Adams",

"Ryan Seacrest",

"Salma Hayek",

"Sandra Bullock",

"Sarah Jessica Parker",

"Sarah Michelle Gellar",

"Sarah Palin",

"Scarlett Johansson",

"Scott Baio",

"Sean Combs",

"Sean Penn",

"Selena Gomez",

"Seth Rogen",

"Shakira",

"Shania Twain",

"Sharon Osbourne",

"Sheryl Crow",

"Shia LaBeouf",

"Simon Cowell",

"Skrillex",

"Snooki",

"Snoop Dogg",

"Steve Carell",

"Steven Tyler",

"Susan Boyle",

"Taylor Swift",

"The Situation",

"Tiger Woods",

"Tim McGraw",

"Tina Fey",

"Tom Cruise",

"Tom Hanks",

"Tori Spelling",

"Tracy Morgan",

"Tyra Banks",

"Uma Thurman",

"Usher",

"Vanessa Williams",

"Vin Diesel",

"Vince Vaughn",

"Whitney Houston",

"Whoopi Goldberg",

"Will Arnett",

"Will Ferrell",

"Will Smith",

"Willow Smith",

"Winona Ryder",

"Wiz Khalifa",

"Zac Efron",

"Bobby Hill",

"Santa Clause",

"Peter Griffin",

"Bart Simpson",

"Bilbo Baggins",

"George Jetson",

"Homer Simpson",

"Marge Simpson",

"Lisa Simpson",

"Bazooka Joe",

"Peter Pan",

"Doctor Who",

"Captain Kirk",

"Spock",

"Bender Rodriguez",

"Scruffy the Janitor",

"Lois Lane",

"Superman",

"Spiderman",

"Patrick Bateman",

"The Incrdible Hulk",

"Kermit the Frog",

"Dr. Doom",

"Dorothy Gale",

"Samwise Gamgee",

"Eric Cartman",

"Holden Caulfield",

"Billie Holiday",

"Kurt Cobain",

"2Pac",

"Elvis Presley",

"Dr. Strange",

"Yoda",

"Optimus Prime",

"Huckleberry Finn",

"Mickey Mouse",

"Donald Duck",

"Big Bird",

"Elmo",

"Grover",

"Ebenezer Scrooge",

"Bugs Bunny",

"Captain Ahab",

"Jean-Luc Picard",

"Cthulhu",

"Atticus Finch",

"Scarlett O’Hara",

"Merlin",

"Frodo Baggins",

"Han Solo",

"Luke Skywalker",

"Darth Vader",

"James T. Kirk",

"James Bond",

"Macgyver",

"Mary Poppins",

"Joe Camel",

"Indiana Jones",

"Harry Potter",

"Sherlock Holmes",

"Buffy Summers",

"Jesus Christ",

"Chef Boy R.D.",

"Zack Morris",

"A.C.Slater",

"Jessie Spano",

"Screech Powers",

"Kelly Kapowski",

"Lisa Turtle",

"Mr. Belding",

"Montgomery Burns",

"Ned Flanders",

"Disco Stu",

"Rod Flanders",

"Todd Flanders",

"Barney Gumble",

"Dr. Julius Hibbert",

"Edna Krabappel",

"Krusty the Clown",

"Bleeding Gums Murphy",

"Seymour Skinner",

"Moe Szyslak",

"Milhouse Van Houten",

"Clancy Wiggum",

"Philip J. Fry",

"Turanga Leela",

"Amy Wong",

"Doctor John Zoidberg",

"Professor Hubert J. Farnsworth",

"Hermes Conrad",

"Kif Kroker",

"Zapp Brannigan",

"Lord Nibbler",

"Stephen Hawking",

"Salvador Dali",

"Pablo Picasso",

"Andy Warhol",

"Frida Kahlo",

"Marcel Duchamp"

]


Feel free to use this list, add to it if you like, and here is an excellent source of word lists: https://www.enchantedlearning.com/wordlist/


You can also google "word lists by category" and see what you find.


Step 5: Code

Now that we have our origin sentences and our word lists, it's time to put it together in correct code format. This is what our code will look like with explanations written in RED:


  1. Begin the code with an opening curly bracket

  2. Begin your list of origin sentences with the word origin in quotation marks, followed by a colon, and opening a square bracket

  3. List your origin sentences in quotation marks, and ending with a comma.

  4. The last origin sentence should NOT have a comma at the end.

  5. End your list of origin sentences with a closing square bracket and a comma

  6. Begin wordlists with the category name inside of quotation marks, followed by a colon and an opening square bracket.

  7. List each word individually inside of quotations marks and followed by a comma.

  8. The last word in your list should NOT have a comma.

  9. End each list with a square bracket and a comma.

  10. The last word list should NOT have a comma.

  11. End the code with a closing curly bracket

Code starts here:

{ <-- 1, curly bracket

"origin": [ <-- 2 origin in quotes, colon, square bracket

"#celebrity# said the #adjective# thing #time#, and now I feel like #emotion#.", <-3 sentence in quotes with comma

"#expression#! I #action# my #adjective# #bodypart# on the #thing# and I need to go to the #place#.", <--3 comma

"#expression#! My #familymember# forgot to #action# and I was late for #place#!"<--3 comma

"I'm so #pysicalstate# I could #action# a #animal#!"<--4 NO comma

], <--5, square bracket and comma


"bodypart": [ <--6 category name in quotes, colon, square bracket

"head", <--7 word in quotes, comma

"foot",

"toe",

"arm",

"butt",

"elbow",

"eyeball",

"face",

"nose" <--8 last word NO comma

], <--9 square bracket and a comma


"celebrity": [ <--6 category name in quotes, colon, square bracket

"John Travolta",

"Marylin Manson",

"Miley Cyrus",

"Michael Jackson",

"Joe Biden",

"Mickey Mouse"

] <--10 NO comma

} <--11 Curly bracket

Code ends.


TIP: The Cheap Bots Done Quick website where you will type your code has an error box that will notify you if there is a problem with your code. Check it frequently and be mindful of your punctuation. The code needs to follow the rules to work.


TIP: the code is case sensitive, so however you type the categories in your origin sentences, is how you must type them on your words list.


TIP: You can make automatic changes to your words by adding these extensions:

  • #example.s# <--to add an "s" at the end of a word making it plural

  • #example.ed# <--to add an "ed" at the end of a word making it past tense

  • #example.capitalize# <--to capitalize the word, for the beginning of a sentence

  • #example.a# <--to add an "a" or "an" before a word (it chooses which automatically)

  • #example.capitalizeAll# <--to capitalize all the letters in a word

  • #example.ed.capitalize.a# <--to use more than one of these at a time


Useful links:

Twitter, obviously!: http://twitter.com

Tracery code tutorials: http://air.decontextualize.com/tracery/ & https://blogs.library.unt.edu/digital-scholarship/2018/01/24/tricky-tracery/

Where to put your code: https://cheapbotsdonequick.com/

Tons of handy word lists: https://www.enchantedlearning.com/wordlist/


99 views

A tremendous amount of soup was harmed in the making of this website.

Autonomous Soup New Media Art © 2016