Skip to content

EmilioRoche/twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for simple Python Twitter Bot

What?

A twitter user can @fruta_bot asking about calories in a specific fruit, and the bot will auto reply with the correct response about the fruit and its calories. Keyword(s) is specified to "calories", and can filter out what fruit is mentioned in the tweet.

Why?

  • I built this twitter bot so I could have some more practice using Python, as well as build something fun that isn't web or application specific. I like to continue learning other applications.

How?

  • The twitter bot uses the Twitter Developer Platform, specifically the Twitter API. For the fruit data, I use a free external API provided by [fruityvice] (https://www.fruityvice.com/). When the fruit string is parsed out of the tweet, I do an API call to this API and get back the calories information.

Demo for when a user tweets about a valid fruit and uses correct keywords

Demo

Demo for when a user tweets about an invalid fruit but still uses correct keywords

Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published