Last active
December 4, 2019 12:24
-
-
Save Pan-Maciek/2f9ae3dd2c6850f6f5c0a98575042153 to your computer and use it in GitHub Desktop.
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
from tabula import read_pdf | |
df = read_pdf('k36.pdf', output_format='tsv') | |
print(df) |
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
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