Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fer-moreira/RetweetBot

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RetweetBot

Python Version

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 Keyxxxx
API Secret Keyxxxxxxxx
Access Tokenxxxx
Access Token Secretxxxxxxxx
Access LevelRead and Write

Configuring the settings file

// 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


About

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.