Étienne Deparis
10 years ago
4 changed files with 96 additions and 39 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,22 @@
@@ -0,0 +1,22 @@
|
||||
[DEFAULT] |
||||
# For deployment. It's on a don't wanna know basis :) |
||||
# logging_level = error |
||||
logging_level = debug |
||||
# 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 = items.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 |
||||
# 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 |
||||
# Use your own feeds, of course :) |
||||
feeds = https://swatwt.com/favs/rss/en |
||||
https://github.com/thedod.atom |
||||
https://github.com/milouse.atom |
Loading…
Reference in new issue