#!/bin/sh # Set up the local scraperwiki python library if [ ! -d testlib/scraperwiki-python ] ; then mkdir -p testlib git clone https://github.com/petterreinholdtsen/scraperwiki-python.git \ testlib/scraperwiki-python (cd testlib/scraperwiki-python; git checkout -b localbranch) (cd testlib/scraperwiki-python; git merge -m "Merge patches." origin/scraperwiki.swimport \ origin/sqliteerror origin/verbose-sqlite) fi # Install the rest sudo apt-get install python-alembic python-beautifulsoup python-dateutil python-requests python-lxml python-cssselect if [ ! -h scrapersources/postliste-python-lib.py ] ; then ln -s postliste-python-lib scrapersources/postliste-python-lib.py fi mkdir -p data