summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzr/README3
-rw-r--r--.bzr/branch-format1
-rw-r--r--.bzr/branch/branch.conf1
-rw-r--r--.bzr/branch/format1
-rw-r--r--.bzr/branch/last-revision1
-rw-r--r--.bzr/branch/tags0
-rw-r--r--.bzr/checkout/conflicts1
-rw-r--r--.bzr/checkout/dirstatebin11610 -> 0 bytes
-rw-r--r--.bzr/checkout/format1
-rw-r--r--.bzr/checkout/views0
-rw-r--r--.gitignore2
-rw-r--r--config_template.py56
12 files changed, 58 insertions, 9 deletions
diff --git a/.bzr/README b/.bzr/README
deleted file mode 100644
index f82dc1c..0000000
--- a/.bzr/README
+++ /dev/null
@@ -1,3 +0,0 @@
-This is a Bazaar control directory.
-Do not change any files in this directory.
-See http://bazaar.canonical.com/ for more information about Bazaar.
diff --git a/.bzr/branch-format b/.bzr/branch-format
deleted file mode 100644
index 9eb09b7..0000000
--- a/.bzr/branch-format
+++ /dev/null
@@ -1 +0,0 @@
-Bazaar-NG meta directory, format 1
diff --git a/.bzr/branch/branch.conf b/.bzr/branch/branch.conf
deleted file mode 100644
index fe99fd4..0000000
--- a/.bzr/branch/branch.conf
+++ /dev/null
@@ -1 +0,0 @@
-push_location = bzr+ssh://bazaar.launchpad.net/~jff-de/+junk/mwc/
diff --git a/.bzr/branch/format b/.bzr/branch/format
deleted file mode 100644
index dc392f4..0000000
--- a/.bzr/branch/format
+++ /dev/null
@@ -1 +0,0 @@
-Bazaar Branch Format 7 (needs bzr 1.6)
diff --git a/.bzr/branch/last-revision b/.bzr/branch/last-revision
deleted file mode 100644
index ed08615..0000000
--- a/.bzr/branch/last-revision
+++ /dev/null
@@ -1 +0,0 @@
-16 jff@jff-webhosting.net-20140918073329-ocbeldpm854df6xq
diff --git a/.bzr/branch/tags b/.bzr/branch/tags
deleted file mode 100644
index e69de29..0000000
--- a/.bzr/branch/tags
+++ /dev/null
diff --git a/.bzr/checkout/conflicts b/.bzr/checkout/conflicts
deleted file mode 100644
index 0dc2d3a..0000000
--- a/.bzr/checkout/conflicts
+++ /dev/null
@@ -1 +0,0 @@
-BZR conflict list format 1
diff --git a/.bzr/checkout/dirstate b/.bzr/checkout/dirstate
deleted file mode 100644
index 80a191d..0000000
--- a/.bzr/checkout/dirstate
+++ /dev/null
Binary files differ
diff --git a/.bzr/checkout/format b/.bzr/checkout/format
deleted file mode 100644
index e0261c7..0000000
--- a/.bzr/checkout/format
+++ /dev/null
@@ -1 +0,0 @@
-Bazaar Working Tree Format 6 (bzr 1.14)
diff --git a/.bzr/checkout/views b/.bzr/checkout/views
deleted file mode 100644
index e69de29..0000000
--- a/.bzr/checkout/views
+++ /dev/null
diff --git a/.gitignore b/.gitignore
index 4ccd411..4579214 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,6 @@
/*.txt
*~
*.pyc
+.bzrignore
+.bzr
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
+