2022-08-16 13:39:24 +02:00
|
|
|
# Feeds configuration.
|
|
|
|
Feeds = [
|
|
|
|
{
|
|
|
|
"URLs": ["https://mastodon.social/@Mastodon", "https://botsin.space/@sitoctt"], # List of Mastodon profile URLs to scrape.
|
|
|
|
"IncludeRetoots": True,
|
|
|
|
"IncludeReplies": True,
|
|
|
|
"LocalSave": True, # Whether or not to save posts as HTML files locally.
|
|
|
|
"SendMail": False, # Whether or not to send posts via email.
|
|
|
|
"MailTo": ["example@example.com"] # List of email recipients.
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
# SMTP configuration (only required for sending mail).
|
|
|
|
MailUsername = "example@example.com"
|
|
|
|
MailPassword = "Example"
|
|
|
|
MailServer = "smtp.example.com"
|
|
|
|
MailPort = 465
|
|
|
|
|
|
|
|
# How often to refresh the feeds (in seconds). Set to 0 for a single run, instead of having the program sleep.
|
|
|
|
LoopTime = 300
|
|
|
|
|
2022-08-22 23:19:33 +02:00
|
|
|
# Additional time (in seconds) to sleep in code sections, to prevent ratelimiting.
|
2022-10-29 11:18:52 +02:00
|
|
|
PageSleep = 3 # Between every scraped page
|
|
|
|
ItemSleep = 2 # Between every scaped item
|
2022-08-22 23:19:33 +02:00
|
|
|
MailSleep = 9 # Between every sent mail
|
|
|
|
|
|
|
|
# Stop recursive navigation across posts pages if limit is reached. Set 0 for no limit (use with caution on new profiles with many posts).
|
|
|
|
MaxPagesRecursion = 10
|
2022-08-16 13:39:24 +02:00
|
|
|
|
|
|
|
# Whether or not to allow spaces in file names.
|
|
|
|
SpacesInFiles = True
|
|
|
|
|
2022-10-29 11:18:52 +02:00
|
|
|
### NOT IMPLEMENTED ###
|
|
|
|
# Whether or not to censor potentially private information in the logs, like email addresses (passwords are never printed despite of this setting).
|
|
|
|
#CensorLogs = True
|
|
|
|
### --------------- ###
|
|
|
|
|
2022-11-07 14:01:54 +01:00
|
|
|
# Max times to retry in case of an HTML error, before giving up.
|
|
|
|
MaxTryCount = 5
|
|
|
|
|
2022-08-16 13:39:24 +02:00
|
|
|
# Other advanced settings.
|
2022-10-29 11:18:52 +02:00
|
|
|
AppName = "bottocto-MastodonFeedHTML"
|
|
|
|
DbFile = "Database.txt"
|
2022-08-16 13:39:24 +02:00
|
|
|
UserAgent = AppName
|