Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/fer-moreira/retweetbot

a simple bot for twitter that retweets everything with a specified word.
https://github.com/fer-moreira/retweetbot

bot bots python retweet retweet-bot retweets twitter twitter-api twitter-bot twitter-oauth twitterbot

Last synced: about 12 hours ago
JSON representation

a simple bot for twitter that retweets everything with a specified word.

Awesome Lists containing this project

README

        

# RetweetBot

[![Python Version](https://img.shields.io/badge/python-3.8-black)](https://python.com)

simple bot for twitter that retweets everything with a selected search term, specified in auth.json


## Dependecies:

- python >= 3.8
- tweepy >= 3.8.0

## Getting started

First of all, you need to create an RetweetBot at developer.twitter.com after this your need the Consumer API keys and Access token & access token secret from you application.

API KeyxxxxAPI Secret KeyxxxxxxxxAccess TokenxxxxAccess Token SecretxxxxxxxxAccess LevelRead and Write

## Configuring the settings file

```json
// file: auth.json
{
"access_token_key" : "YOUR_ACCESS_TOKEN_GOES_HERE",
"access_token_secret" : "YOUR_ACCESS_TOKEN_SECRET_GOES_HERE",
"client_key" : "YOUR_CONSUME_API_KEY_GOES_HERE",
"client_secret" : "YOUR_CONSUME_API_SECRET_KEY_GOES_HERE",
"query" : [
"CHOOSE A WORD"
],
"count" : 50,
"result_type" : "recent",
"iso_language_code" : "pt"
}
```

## Running


$ pip install -r requirements.txt
$ python app.py auth.json

***Output Example***


[RETWEETED -> 1258555422610534400] 'luciana - @_lula_silvestri' - 'Búscame cuando haya amorQue sólo por ti a Dios le...'
[RETWEETED -> 1258555419896799232] 'A Sergio Marques B - @sergiomarquesb' - '@SF_Moro Como sempre, vale tudo para vc desde que ...'
[RETWEETED -> 1258555418416230402] 'Seoade Lula - @Seoade' - 'RT @HGabrielaRM: @dilmabr Deveriam julgar cada emb...'
Retweeted: 3 | remaining: 2

[RETWEETED -> 1258555410925211656] 'claudio riso lopes - @claudiorisolope' - 'RT @EstevamReboucas: Lula: Essa gente ñ pode ficar...'
[RETWEETED -> 1258555396857442305] 'Jesus Marte Fajardo - @martefajardo' - '@PedroMCasals @realDonaldTrump Trump es la salvac...'
Retweeted: 2 | remaining: 0


## References

- https://developer.twitter.com/en/docs
- https://developer.twitter.com/en/docs/api-reference-index
- https://developer.twitter.com/en/docs/tutorials
- https://developer.twitter.com/en/docs/changelog/enterprise
- https://api.twitterstat.us/
- http://docs.tweepy.org/en/latest/


## About
This code is used in https://twitter.com/LulaBotOficial
and created by https://twitter.com/nando_ferreira2