An open API service indexing awesome lists of open source software.

https://github.com/saswatamcode/python-twitterbot

This is a simple Twitter bot made using python, tweepy and Twitter API.
https://github.com/saswatamcode/python-twitterbot

Last synced: 9 months ago
JSON representation

This is a simple Twitter bot made using python, tweepy and Twitter API.

Awesome Lists containing this project

README

          

[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
[![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)](https://GitHub.com/Naereen/ama)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![made-for-VSCode](https://img.shields.io/badge/Made%20for-VSCode-1f425f.svg)](https://code.visualstudio.com/)
[![GitHub forks](https://img.shields.io/github/forks/saswatamcode/python-twitterbot.svg?style=social&label=Fork&maxAge=2592000)](https://GitHub.com/saswatamcode/python-twitterbot/network/)
[![GitHub stars](https://img.shields.io/github/stars/saswatamcode/python-twitterbot.svg?style=social&label=Star&maxAge=2592000)](https://GitHub.com/saswatamcode/python-twitterbot/stargazers/)
[![GitHub issues](https://img.shields.io/github/issues/saswatamcode/python-twitterbot.svg)](https://GitHub.com/saswatamcode/python-twitterbot/issues/)
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)

# python-twitterbot
This is a simple Twitter bot made using python, tweepy and Twitter API.
## Initial Steps:
- [Sign up](https://apps.twitter.com/) for Twitter api,create an app and retrieve your tokens.
- Make sure to change the twitterbot_credentials.py to your keys and tokens.
- Run ``` pip install tweepy ```
## How to run
To tweet something write the tweet(s) in tweet.txt and then run
```
python twitterbot.py
```
To automatically search for tweets with a particular hashtag, retweet, like and follow the user, edit the hashtag to your preference in twitterbot_retweet.py and then run
```
python twitterbot_retweet.py
```