summaryrefslogtreecommitdiff
path: root/scripts/cron.sh
diff options
context:
space:
mode:
authorankitjavalkar2016-04-18 12:04:05 +0530
committerankitjavalkar2016-04-18 12:04:05 +0530
commit32b8712249d7fa7891576b5c15c902c6604ee3d5 (patch)
treefad1c66150da512716d5654419e0098590119025 /scripts/cron.sh
parent8876df52d088a1de0ea769a46b82ad6fb0682a80 (diff)
parentdd0e366a19d89a249257e5e3f5bd61ad020a0430 (diff)
downloadPython-TBC-Interface-32b8712249d7fa7891576b5c15c902c6604ee3d5.tar.gz
Python-TBC-Interface-32b8712249d7fa7891576b5c15c902c6604ee3d5.tar.bz2
Python-TBC-Interface-32b8712249d7fa7891576b5c15c902c6604ee3d5.zip
Merge pull request #26 from maheshgudi/master
Adding Commenting and Error detection apps
Diffstat (limited to 'scripts/cron.sh')
-rw-r--r--scripts/cron.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/cron.sh b/scripts/cron.sh
new file mode 100644
index 0000000..bf219be
--- /dev/null
+++ b/scripts/cron.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+cd $DIR
+
+python database_updater.py
+
+source ../../../bin/activate
+# this is for the test server. Might differ on different machines. Ideally it should be "source ../../bin/activate"
+
+
+
+cd crawler/
+
+scrapy crawl tbc_spider -o items.json -t json
+#sadly scrapy can only be run in the folders containing scrapy.cfg
+
+cd ../.
+
+python split_json.py
+
+deactivate
+