Apple addicted, Tech, Photography, Video/Photo editing, 3D-Printing, Blogger, Python/C++-Noob, Geocacher
Reading Time: < 1minute
SpritBot - Twitter Bot
DISCONTINUED since Elon wants to charge devs 100$/month for using the twitter api
To gain some experience with Python, I decided to write a simple Twitter bot. The bot tweets several times a day the fuel prices in Germany.I use the Tweepy library to access the Twitter API. To make sure that the tweets are sent at a certain time every day, I used the Schedule library…. At the beginning I had some difficulties with it, but in the meantime I managed it. Surely there are more efficient and better methods to schedule the tweets. Furthermore, I plan to use the TankerKönig API to tweet the prices of individual gas stations. You can find the Bot at @SpritBot on Twitter!
Planned Features
Answering to Tweets
Are you online? – Feature
Tweeting the prices for a single Gas-Stations if a user asks for
Table showing how prices have behaved over a given period of time
Tweet-Time
Mon-Fri: 8:30AM, 12AM, 4:30PM
Sat-Sun: 8:30AM, 12AM, 4:30PM, 6PM
Release-Notes
V 1.2
Fixed Issue causing Spritbot to crash (no more duplicate-tweets when the price keeps the same)
Current Time now included in tweet
V 1.1
Fixed Formatting
New Emoji-Icons in front of the prices
Renamed the Project (SpritBot in the lower part of the tweet)