mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-22 00:02:08 +00:00
Compare commits
6 Commits
1e3418144e
...
6cd4057f9f
Author | SHA1 | Date | |
---|---|---|---|
|
6cd4057f9f | ||
|
62073f5d2a | ||
|
314ca28202 | ||
|
a6b30d3037 | ||
|
de6e44be18 | ||
|
143be70608 |
16
twoot.py
16
twoot.py
|
@ -40,7 +40,7 @@ MAX_REC_COUNT = 50
|
|||
|
||||
# Set the desired verbosity of logging
|
||||
# One of logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL
|
||||
LOGGING_LEVEL = logging.DEBUG
|
||||
LOGGING_LEVEL = logging.INFO
|
||||
|
||||
# How many seconds to wait before giving up on a download (except video download)
|
||||
HTTPS_REQ_TIMEOUT = 10
|
||||
|
@ -577,21 +577,23 @@ def main(argv):
|
|||
)
|
||||
|
||||
logging.info('Running with the following configuration:')
|
||||
logging.info(' Config file : ' + str(args['f']))
|
||||
logging.info(' Config File : ' + str(args['f']))
|
||||
logging.info(' twitter_account : ' + TOML['config']['twitter_account'])
|
||||
logging.info(' mastodon_instance : ' + TOML['config']['mastodon_instance'])
|
||||
logging.info(' mastodon_user : ' + TOML['config']['mastodon_user'])
|
||||
logging.info(' upload_videos : ' + str(TOML['options']['upload_videos']))
|
||||
logging.info(' post_reply_to : ' + str(TOML['options']['post_reply_to']))
|
||||
logging.info(' skip_retweets : ' + str(TOML['options']['skip_retweets']))
|
||||
logging.info(' remove_link_redirections : ' + str(TOML['options']['remove_link_redirections']))
|
||||
logging.info(' remove_trackers_from_urls: ' + str(TOML['options']['remove_trackers_from_urls']))
|
||||
logging.info(' upload_videos : ' + str(TOML['options']['upload_videos']))
|
||||
logging.info(' footer : ' + TOML['options']['footer'])
|
||||
logging.info(' remove_original_tweet_ref: ' + str(TOML['options']['remove_original_tweet_ref']))
|
||||
logging.info(' tweet_max_age : ' + str(TOML['options']['tweet_max_age']))
|
||||
logging.info(' tweet_delay : ' + str(TOML['options']['tweet_delay']))
|
||||
logging.info(' toot_cap : ' + str(TOML['options']['toot_cap']))
|
||||
logging.info(' twitter substitution : ' + str(TOML['options']['subst_twitter']))
|
||||
logging.info(' youtube substitution : ' + str(TOML['options']['subst_youtube']))
|
||||
logging.info(' reddit substitution : ' + str(TOML['options']['subst_reddit']))
|
||||
logging.info(' subst_twitter : ' + str(TOML['options']['subst_twitter']))
|
||||
logging.info(' subst_twitter : ' + str(TOML['options']['subst_youtube']))
|
||||
logging.info(' subst_twitter : ' + str(TOML['options']['subst_reddit']))
|
||||
|
||||
# Try to open database. If it does not exist, create it
|
||||
sql = sqlite3.connect('twoot.db')
|
||||
|
@ -646,7 +648,7 @@ def main(argv):
|
|||
twit_account_page.status_code) + '). Aborting')
|
||||
exit(-1)
|
||||
|
||||
logging.info('Nitter page downloaded successfully from ' + url)
|
||||
logging.debug('Nitter page downloaded successfully from ' + url)
|
||||
|
||||
# DEBUG: Save page to file
|
||||
# of = open(toml['config']['twitter_account'] + '.html', 'w')
|
||||
|
|
Loading…
Reference in New Issue
Block a user