aboutsummaryrefslogtreecommitdiffstats
path: root/run-scraper
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2012-07-13 14:54:10 +0200
committerPetter Reinholdtsen <pere@hungry.com>2012-07-13 14:54:10 +0200
commit82a02bfae556f1a5709acb43df631108587547b8 (patch)
tree8d4c5721439ab8343d7415c290cfab3a249a704a /run-scraper
parentaa84ea74af30b388221244b944239e85ea689db2 (diff)
Add test script to run scrapers locally.
Diffstat (limited to 'run-scraper')
-rwxr-xr-xrun-scraper9
1 files changed, 9 insertions, 0 deletions
diff --git a/run-scraper b/run-scraper
new file mode 100755
index 0000000..1f9637b
--- /dev/null
+++ b/run-scraper
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# Run scraperwiki scrapers with a fake scraperwiki library, to allow
+# the scrapers to be tested locally.
+
+file=$1
+export PYTHONPATH=`pwd`/testlib
+
+python $file