Skip to content

Instantly share code, notes, and snippets.

@Pan-Maciek
Last active December 4, 2019 12:24
Show Gist options
  • Save Pan-Maciek/2f9ae3dd2c6850f6f5c0a98575042153 to your computer and use it in GitHub Desktop.
Save Pan-Maciek/2f9ae3dd2c6850f6f5c0a98575042153 to your computer and use it in GitHub Desktop.
from tabula import read_pdf
df = read_pdf('k36.pdf', output_format='tsv')
print(df)
id=$1
name="$2 $3"
while [ 0 ]; do
wget "podsiadl.pl/k$id.pdf" 2> /dev/null
wynik=$(python3 main.py 2> /dev/null | grep "$name" | grep -Po '\d+%')
if [[ $wynik ]]; then
rm "k$id.pdf"
notify-send 'Hej! Są już wyniki.' "Masz $wynik"
while [ 0 ]; do
echo -ne '\007'
done
fi
rm "k$id.pdf" 2> /dev/null
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment