pyAPI-bot
Python bot to help your Lazy inner Self. This bot Automates your Twitter Work (Liking, Latest Tweets, Follow & unfollow) and Play some Music while You're Bored.
Requirements :
- Python 3
- Tweepy
- speech_recognition
- gTTS
- An Internet Connection (that's important!)
Setup :
- Just do
pip install -r requirements.txt
and all the requiements will be installed on your system - For Tweepy you would need four tokens (Yea that's right 4 😁 ). For that:
- Goto https://apps.twitter.com/ and Create an App to generate your 4 Tokens
consumer_key = 'consumer key' consumer_secret = 'consumer secrets' access_token = 'access token' access_token_secret = 'access token secret'
- While Creating the App twitter will ask about some things (short and long ones). So fill those out and you would successfully create the App.
- Goto https://apps.twitter.com/ and Create an App to generate your 4 Tokens
Usage :
You need to run sp_test.py and say the commands .
-
For Twitter :
- Saying
Show the tweets
will command the bot to read the tweets for you (Latest ones). - Saying
Like [username]
will like the username's tweet in the recent tweets. - Saying
Follow [username]
will follow the username. - Saying
Unfollow [username]
will unfollow the username from your Followers List.
- Saying
-
For Music :
- Saying
Play [Songname]
will play the Song for you. Cool isn't it. 😄
- Saying
That's all for our bot.
How to Contribute :
If you face any problem with the script, feel free to submit an issue. If you have any new ideas about tools or something else, you can submit a pull request.
Made with <3 by me and mrT4ntr4