aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-02-02 18:08:57 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-02-02 18:08:57 +0100
commit4a37f515c0982bdd1b11cb83482e9a35fb67a2a2 (patch)
tree127ac9b343e37a0d9f3bb7ab227d70af98bbc36c
parentMark all articles as read by feed. (diff)
downloadnewspipe-4a37f515c0982bdd1b11cb83482e9a35fb67a2a2.tar.gz
newspipe-4a37f515c0982bdd1b11cb83482e9a35fb67a2a2.tar.bz2
newspipe-4a37f515c0982bdd1b11cb83482e9a35fb67a2a2.zip
Affed fetch.py script to use with cron.
-rw-r--r--fetch.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/fetch.py b/fetch.py
new file mode 100644
index 00000000..c87df42c
--- /dev/null
+++ b/fetch.py
@@ -0,0 +1,18 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# fetch.py
+#
+# You can use this script with cron, for example:
+# */30 * * * * cd ~/.pyaggr3g470r/ ; python fetch.py
+# to fetch articles every 30 minutes.
+
+import sys
+import conf
+from pyaggr3g470r import feedgetter
+
+if __name__ == "__main__":
+ # Point of entry in execution mode
+ print sys.argv[1]
+ feed_getter = feedgetter.FeedGetter(sys.argv[1])
+ feed_getter.retrieve_feed(None)
bgstack15