项目作者: chandrikadeb7

项目描述 :
Twitter bot in Python for Girlscript Foundation
高级语言: Python
项目地址: git://github.com/chandrikadeb7/Girlscript-Twitter-Bot.git
创建时间: 2020-05-27T09:53:28Z
项目社区:https://github.com/chandrikadeb7/Girlscript-Twitter-Bot

开源协议:MIT License

下载


GirlScript Twitter Bot


A Twitter Bot that automatically retweets, favourites the tweets with hashtag #girlscript


Follow on Twitter - Click Girlscript Bot

:star: Star us on GitHub — it helps!

Python
contributions welcome
Forks
Stargazers
Issues
MIT License
LinkedIn

🚀 Installation

Clone the repo

  1. $ git clone https://github.com/chandrikadeb7/Girlscript-Twitter-Bot.git

Install tweepy Python module

  1. $ pip install tweepy

:bulb: Working

Sign up for a Twitter Developer Account

  • Create a separate Twitter account for your bot.
  • Sign up for Twitter Developer Account from this site - Apply for a Twitter Developer Account
  • Enter the necessary fields and await for email confirmation.
  • Click on Create an app
  • Enter the details and keep safe the access tokens generated.

Enter your generated access tokens and consumer keys in the file credentials.py

  1. consumer_key = ''
  2. consumer_secret = ''
  3. access_token = ''
  4. access_token_secret = ''

Edit the retweet and other details in the file config.py

  1. # This is hastag which Twitter bot will search and retweet. You can edit this with any hastag .For example : '#javascript'
  2. QUERY = '#anything'
  3. # Twitter bot setting for liking Tweets
  4. LIKE = True
  5. # Twitter bot setting for following user who tweeted
  6. FOLLOW = True
  7. # Twitter bot sleep time settings in seconds. For example SLEEP_TIME = 300 means 5 minutes.
  8. # you can decrease it or increase it as you like.Please,use large delay if you are running bot all the time so that your account does not get banned.
  9. SLEEP_TIME = 300

:key: Deployment

  • Sign up for a free account in Heroku
  • Click on New -> Create new app
  • Enter the app-name in lower case and select your nearest region.
  • Choose Heroku CLI for deployment. Follow the steps given in Deploy tab.
  • Once the build is successful enable the Free Dynos option from Overview tab.

:clap: And it’s done!

Feel free to file a new issue with a respective title and description on the the Girlscript-Twitter-Bot repository. If you already found a solution to your problem, I would love to review your pull request!

📘 License

The Girlscript Twitter Bot is released under the under terms of the MIT License.

:heart: Contributor

Made by Chandrika Deb