get the status of your favourite indiegogo.com campaign per shell script
If you want to know the status of your favourite indiegogo campaign, but don't want to look at the website yourself, the following bash script comes in handy.
Just call the script with the campaign name as the argument. eg.:./get_status.sh raspicommplus-all-in-one-raspberry-pi-extension
#/bin/bash
# the url of the campaign CAMPAIGN="raspicommplus-all-in-one-raspberry-pi-extension"
# use the first argument as the campaign name if [[ "$1" != "" ]]; then CAMPAIGN="$1" fi
URL="https://www.indiegogo.com/projects/$CAMPAIGN"
# look for the utag_data DATA=`curl -s ${URL} | grep utag_data`
function get_value() { local param="s/.*$1\":([^,]*),.*/\1/g" local value=`echo ${DATA} | sed -r "$param"` echo $1: $value }
get_value "campaign_raised_amount" get_value "campaign_goal_amount" get_value "campaign_funders" get_value "campaign_percent_of_goal" get_value "campaign_days_left"











