Skip to content

MatthewCash/twitter-collection-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-collection-bot

A twitter bot for continuously posting a collection of media at exact timestamps.

Collection

Database

The collection should be an sqlite3 database with the following rows:

Column Name Purpose Type Notes
id Tweet ID u64
file_names Media File Names String comma-separated
text Tweet Text Content String
translated_text Tweet Translated Text String
date Tweet Date u64 unix timestamp

Environment Variables

Set DB_PATH to the path of the sqlite3 database.

Set IMAGE_DIR_PATH to the path of the image directory (where file names are contained).

Set COLLECTION_DURATION_YEARS to the length of the collection in years.

Twitter Auth

Developer Bot

Provide the following environment variables:

TWITTER_CONSUMER_KEY= # api key
TWITTER_CONSUMER_SECRET= # api secret
TWITTER_ACCESS_KEY= # access token
TWITTER_ACCESS_SECRET= # access secret

Experimental User Bot

Provide the following environment variables:

# Set this env variable to use a user account
TWITTER_USE_USER=1

TWITTER_USER_TOKEN= # authorization header
TWITTER_USER_AUTH_TOKEN= # auth_token cookie

About

Twitter Collection Bot

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages