Created
March 1, 2024 23:38
-
-
Save HookedBehemoth/6ad5a587f49b4eedb5c0e23dd97598c4 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
#!/bin/sh | |
URL="https://www.dhl.de/int-verfolgen/data/search?piececode=${1}&noRedirect=true&language=de&cid=pulltorefresh" | |
RES=`curl $URL -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0' -H 'Accept: application/json' -H 'Accept-Encoding: gzip, deflate, br'` | |
echo $RES | jq '.sendungen[].sendungsdetails.sendungsverlauf.events' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment