Skip to content

octaedro/twitter_publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter_publisher

Twitter multiaccount publisher - Python This robot automatically publishes tweets to the selected accounts. If it doesn't have tweets to publish, it gets new ones with a Twitter keyword

Preconditions:

  1. Have Python 2.7 installed
  2. Have a mysql database

For this the following steps must be followed: 0) - Execute in terminal: pip -r requirements.txt

    • Add the data to the configuration file
    • It is the connection to the database and the name of the table that will have the accounts
    • Run the file: deploy.py (run in terminal: python debug.py)
    • This will create the configuration table that you must fill
    • Fill in the table that contains the credentials for the twitter accounts
    • After the table has the credentials of the twitter accounts that you want to put online, rerun the file: deploy.py
    • This will create the tables that will contain the tweets
    • Run the file: run.py (run in terminal: python run.py)
    • Set a crontab that runs the run.py file

Twitter account table information:

This table contains the fields:

  • consumerkey - twitter api
  • consumersecret - twitter api
  • accesstoken - twitter api
  • accesstokensecret - twitter api
  • cuenta - not necessary
  • palabra_clave- keyword to be used when searching for new tweets
  • url_fb - not necesary
  • fb_app_id - not necessary
  • fb_app_secret - not necessary
  • fb_token - not necessary
  • tabla - name of the table that we have the tweets of the account
  • publicar_cada - time between tweet and tweet

Tweets table information:

  • id - table id
  • content - the tweet
  • created_date - created date timestamp
  • published_date - published date timestamp
  • published - published status

About

Twitter multiaccount publisher - Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages