Forked from vavrecan/download all bolt-taxify invoices
Created
July 15, 2020 19:34
-
-
Save olso/d62eaeddb847ff2129a5e1edc9f79d4c to your computer and use it in GitHub Desktop.
This file contains 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
1. resend all rides to your email throught app (manual clicking but not so bad) | |
2. in gmail, go to settings and disable conversation mode view | |
3. select all emails from bold and right click to send as attachement | |
4. send this email to yourself | |
5. download all attachements | |
6. (optinal) revert settings in step 2. | |
download invoices using bash: | |
for f in * ; do | |
URL=`grep -roh "$f" -e 'https:\/\/invoice.taxify.eu\/[^"]*'` | |
INVOICE=`grep -roh "$f" -e 'Invoice no. [0-9]*'` | |
DATE=`grep -roh "$f" -e '[0-9][0-9]\.[0-9][0-9]\.20[0-9][0-9]'` | |
wget -O "$DATE - $INVOICE.pdf" "$URL"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment