Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

added quick script script to launch scrapyd

Pablo Hoffman5de5cac43e20
diff --git a/bin/scrapyd b/bin/scrapyd
new file mode 100755
index 000000000..b8a28ebb8
--- /dev/null
+++ b/bin/scrapyd
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+repotac="$(dirname $0)/../extras/scrapyd.tac"
+
+if [ -f "$repotac" ]; then
+ tacfile="$repotac"
+elif [ -f "/usr/share/scrapyd/scrapyd.tac" ]; then
+ tacfile="/usr/share/scrapyd/scrapyd.tac"
+else
+ echo "Unable to find scrapy.tac file"
+ exit 1
+fi
+
+twistd -ny "$tacfile"