diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-19 08:48:17 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-19 08:48:17 +0200 |
commit | b329a335ad10648e64b3de049c083bc04638a072 (patch) | |
tree | 8f6b2d26957a67f9b6424a1d4f24149fb3c637bb /config_template.py |
Imported Upstream version 1.7.2upstream/1.7.2
Diffstat (limited to 'config_template.py')
-rw-r--r-- | config_template.py | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/config_template.py b/config_template.py new file mode 100644 index 0000000..d7069bb --- /dev/null +++ b/config_template.py @@ -0,0 +1,56 @@ +import os.path + +# Copyright: (2013-2014) Michael Till Beck <Debianguru@gmx.de> +# License: GPL-2.0+ + +#We collect xpath snippets at this place: <a href="https://github.com/Debianguru/MailWebsiteChanges/wiki/snippets">Snippet collection</a> - please feel free to add your own definitions! + +sites = [ + + {'shortname': 'mywebsite1', + 'uri': 'http://www.mywebsite1.com/info', + 'type': 'html', + 'titlexpath': '//h1', + 'contentxpath': '//div', + 'titleregex': '', + 'contentregex': '', + 'encoding': 'utf-8'}, + + {'shortname': 'mywebsite2', + 'uri': 'http://www.mywebsite2.com/info', + 'type': 'html', + 'contentxpath': '//*[contains(concat(\' \', normalize-space(@class), \' \'), \' news-list-container \')]', + 'regex': '', + 'encoding': 'utf-8'}, + + {'shortname': 'mywebsite3', + 'uri': 'http://www.mywebsite3.com/info', + 'type': 'text', + 'contentxpath': '', + 'contentregex': 'Version\"\:\d*\.\d*', + 'encoding': 'utf-8'}, + + {'shortname': 'lscmd', + 'uri': 'cmd://ls -l /home/pi', + 'contentregex': '.*Desktop.*' + } + +] + +subjectPostfix = 'A website has been updated!' + +enableMailNotifications = True +sender = 'me@mymail.com' +smtphost = 'mysmtpprovider.com' +useTLS = True +smtpport = 587 +smtpusername = sender +smtppwd = 'mypassword' +receiver = 'me2@mymail.com' + +os.chdir('/var/cache/mwc') + +enableRSSFeed = True +rssfile = 'feed.xml' +maxFeeds = 100 + |