Browse Source
NOTE: If you upgrade, you need to create feed2twister.conf (copy feed2twister.conf.example) and edit it so that it contains similar settings to those you had at conf.pymaster
The Dod
10 years ago
5 changed files with 161 additions and 54 deletions
@ -1,14 +0,0 @@
@@ -1,14 +0,0 @@
|
||||
import logging |
||||
logging.basicConfig(level=logging.INFO) |
||||
#logging.basicConfig(level=logging.ERROR) # For deployment. It's on a don't wanna know basis :) |
||||
USERNAME = 'MYTWISTERUSERNAME' # e.g 'thedod' |
||||
RPC_URL = 'http://MYRPCUSER:MYRPCPASSWORD@127.0.0.1:28332' # change to rpcuser and rpcpassword from ~/.twister/twister.conf |
||||
DB_FILENAME = 'items.db' # db is mainly there to keep track of "what not to post again" :) (debugging too, I guess) |
||||
MAX_URL_LENGTH = 100 # this leaves 36 characters and a ... to get to 140. If we don't have that, we skip the item :( |
||||
MAX_NEW_ITEMS_PER_FEED = 3 # we don't want to flood more than that in a single run. |
||||
USE_SHORTENER = False # to enable this, you need gdshortener: https://github.com/torre76/gd_shortener/ |
||||
SHORTENER_STATS = True # tell is.gd to publicly show statistics for the shortened url |
||||
FEEDS = [ # Use your own feeds, of course :) |
||||
'https://swatwt.com/favs/rss/en', |
||||
'https://github.com/thedod.atom' |
||||
] |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
[DEFAULT] |
||||
# e.g 'thedod' |
||||
username = MYTWISTERUSERNAME |
||||
# change to rpcuser and rpcpassword from ~/.twister/twister.conf |
||||
rpc_url = http://MYRPCUSER:MYRPCPASSWORD@127.0.0.1:28332 |
||||
# db is mainly there to keep track of "what not to post again" :) (debugging too, I guess) |
||||
db_filename = ~/.feed2twister.db |
||||
# this leaves 36 characters and a ... to get to 140. If we don't have that, we skip the item :( |
||||
max_url_length = 100 |
||||
# Use your own feeds, of course :) |
||||
feeds = https://swatwt.com/favs/rss/en |
||||
https://github.com/thedod.atom |
||||
https://github.com/milouse.atom |
||||
|
||||
|
||||
# All the following options are optional |
||||
|
||||
# For deployment. It's on a don't wanna know basis :) |
||||
# logging_level = error |
||||
logging_level = debug |
||||
# we don't want to flood more than that in a single run. |
||||
max_new_items_per_feed = 3 |
||||
# to enable this, you need gdshortener: https://github.com/torre76/gd_shortener/ |
||||
use_shortener = False |
||||
# tell is.gd to publicly show statistics for the shortened url |
||||
shortener_stats = True |
Loading…
Reference in new issue