Skip to content

berlotto/poster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

POSTER

This program is a Twitter poster. This will retrieve all information from a rss feed that you configure and then will post at your twitter timeline as long time you set.

The Code

In the code have 2 big processes:

  1. The process that retrieve and store in a simple SQLite3 database the data from rss feed

  2. The process that read from database a random data and post it in the Twitter

This two processes run as threads in the system, so we can determine different times do be the actions, precisely becouse read the feed of the site and post the links on the twitter not be performed at the same time.

Configuration

This program need to be configured in the "config.py" file. This is the options:

FEED_URLThe feed URL
DBFILEThe name of the database file
TABLENAMEThe name of the table in the database
BEGIN_TWITTER_TEXTA text that will be posted at BEGIN of twitt
FIXED_TWITTER_TEXTA text that will be posted at END of twitt
PAUSE_TIME_FEED_READERTime of the database updater will run, in seconds
PAUSE_TIME_TWITTERTime of the twitter posts will be posted, in seconds
TAG_MAX_LENGTHMax size of tag term to post it, tags given from RSS
TAGS_QTDMax number of tags to post in twitt
MIN_POST_REPETITIONMinimal number of posts to permit repeat posts
Twitter app configuration (http://apps.twitter.com)
t_tokenAccess token
t_token_keyAccess Token Secret
t_con_secretConsumer Key
t_con_secret_keyConsumer Secret

TODO

  • Read rss for more than 1 site
  • Post to other social networks

Run information

Libs:

Python version: 3.4.3

You can run this script with only one of the partes running:

$ python poster.py [all|update|post]

License

This code is licensed under the GPLv3, like you can read in the license.txt or in this url: http://www.gnu.org/licenses/gpl-3.0-standalone.html

Author

Sérgio Berlotto Jr sergio.berlotto@gmail.com

About

The python poster on twitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages