#!/bin/bash

function issue () {
	curl -s "https://www.slavehack2.com/issues/?id=$1" \
	| perl -e '$_ = join "", <>; s/\n//g; s/<br \/>/ /g; s/</\n/g; print' \
	| grep "og:\(title\|description\)" | sed -e 's/.*content="//;s/".*//' \
	| perl -e '$_ = join " :: Status: ", <>; s/^Slavehack 2 - //; s/\n//g; print "$_\n"'
}

for (( i=$1; i <= $2; i=$(($i+1)) )); do
	issue $i;
done
