Skip to content

Instantly share code, notes, and snippets.

@blahah
Last active August 29, 2015 14:02
Show Gist options
  • Save blahah/827f183fb30ea5b6d571 to your computer and use it in GitHub Desktop.
Save blahah/827f183fb30ea5b6d571 to your computer and use it in GitHub Desktop.
quickscrape install debian/ubuntu
if [[ $(uname -v) =~ Debian ]]; then
echo "Debian detected: installing backports"
echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -y nodejs
apt-get install -y nodejs-legacy
curl --insecure https://www.npmjs.org/install.sh | bash
fi
if [[ $(uname -v) =~ Ubuntu ]]; then
echo "Ubuntu detected: using Chris Lea's PPA repo"
apt-get install -y software-properties-common python-software-properties
add-apt-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install -y python g++ make nodejs
fi
sudo -H npm install --global phantomjs casperjs quickscrape
quickscrape --help
OUT=$?
if [ $OUT -eq 0 ]; then
echo "quickscrape successfully installed!"
else
echo "installation failed, please report this at http://github.com/ContentMine/quickscrape/issues"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment