mirror of https://gitlab.com/octospacc/bottocto
31 lines
957 B
Python
31 lines
957 B
Python
# 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
|
|
|
|
# Additional time (in seconds) to sleep between every mail sent, to prevent spam.
|
|
MailSleep = 10
|
|
|
|
# Whether or not to allow spaces in file names.
|
|
SpacesInFiles = True
|
|
|
|
# Other advanced settings.
|
|
AppName = "MastodonFeedHTML"
|
|
UserAgent = AppName
|