BookWheat is a Twitter bot that helps you save important tweets which are relevant to you categorically! it also supports discord integration, which means with a quick setup, you can now send important tweets to your favorite discord text channel!
Here's a short video that explains how BookWheat was made, and the tools it uses such as Redis,Tweepy,Heroku and Discord.py click on it to watch it on youtube!
the data is stored in the form of redis keys. each key stores the information related to a particular user. the file db_methods.py has various methods to retrive the data and store it. in a particular key, the bot stores the twitter handle and user id of the associated user, along side this it also stores the data of all the saved tweets of that particular user. this data has the name of each category, the discord webhook url for this category(for discord intergration) and a list of tweets saved!
when ever the bot has to retrive the saved tweets of the authorized user via the website, it searches the all the keys for the desired user, and then returns all the data stored for that particular user, this data is then displayed on the website portal. retriving methods are also stored under db_methods.py
to run the Twitter Bot locally first clone the repo
- then navigate to the twitter bot folder
- now run
pip install -r requirements.txt
in the terminal to download all the associated packages - now create a file called
creds.py
and fill out the following information now you can run main.py and your bot will be up and running!
python 3.9+
Here some resources to help you quickly get started using Redis Stack. If you still have questions, feel free to ask them in the Redis Discord or on Twitter.
- Sign up for a free Redis Cloud account using this link and use the Redis Stack database in the cloud.
- Based on the language/framework you want to use, you will find the following client libraries:
- Redis OM .NET (C#)
- Watch this getting started video
- Follow this getting started guide
- Redis OM Node (JS)
- Watch this getting started video
- Follow this getting started guide
- Redis OM Python
- Watch this getting started video
- Follow this getting started guide
- Redis OM Spring (Java)
- Watch this getting started video
- Follow this getting started guide
- Redis OM .NET (C#)
The above videos and guides should be enough to get you started in your desired language/framework. From there you can expand and develop your app. Use the resources below to help guide you further:
- Developer Hub - The main developer page for Redis, where you can find information on building using Redis with sample projects, guides, and tutorials.
- Redis Stack getting started page - Lists all the Redis Stack features. From there you can find relevant docs and tutorials for all the capabilities of Redis Stack.
- Redis Rediscover - Provides use-cases for Redis as well as real-world examples and educational material
- RedisInsight - Desktop GUI tool - Use this to connect to Redis to visually see the data. It also has a CLI inside it that lets you send Redis CLI commands. It also has a profiler so you can see commands that are run on your Redis instance in real-time
- Youtube Videos
- Official Redis Youtube channel
- Redis Stack videos - Help you get started modeling data, using Redis OM, and exploring Redis Stack
- Redis Stack Real-Time Stock App from Ahmad Bazzi
- Build a Fullstack Next.js app with Fireship.io
- Microservices with Redis Course by Scalable Scripts on freeCodeCamp Update Bookwheat won runners up at the redis x dev.to hackathon!