Last active
August 29, 2015 14:02
-
-
Save blahah/827f183fb30ea5b6d571 to your computer and use it in GitHub Desktop.
quickscrape install debian/ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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