Small Batch Artisanal Bots: Let's Make Friends
summary
Shows exactly how to build a Twitter bot with Python: get OAuth keys, choose between the REST or streaming API, or use a library like tweepy; gather data from civic APIs, scraping with mechanize/BeautifulSoup, or corpora and NLTK; generate text with Markov chains or NLTK corpora and chat modules; host on an EC2 micro or Heroku worker and schedule tweets with cron. Gives concrete examples (Stealth Mountain grammar-corrector, Viral Hulk headline mutator, Congressional edits feed), plus blocklist and opt-in rules to avoid abusive bots.
AI-written summary · about
chapters (12)
- 0:00Intro
- 2:37Are we talking about those things that spam me?
- 5:17@Stealth Mountain
- 6:12@viralhulk by @undoingsarah
- 11:20Oauth: Your Secret Handshake with Twitter
- 12:35YAML File for Keys
- 16:24Civic Data: Warehouses of Data
- 18:22Scraping: The Internet is your Data Set
- 19:11Scraping Data
- 26:53Hold the Phone, NLTK has chatbots!
- 27:58Natural Language Tool Kit
- 34:19Getting Your Bot to Bot Without You
related talks
15mWhat I learned from building a twitter Art Bot
23mWriting Robot Plays NodeJS, Reddit
31mPyBots! or how to learn to stop worrying and love coding
11mBeowulf Stroganoff: Building Economically Useless Chatbots
47mDo It with Everyone
31mHacking meaningful connections with humans by talking to (toy) rodents
16mWorking Against Predictability
28mMAD Science
