Skip to content

Instantly share code, notes, and snippets.

@HookedBehemoth
Created March 1, 2024 23:38
Show Gist options
  • Save HookedBehemoth/6ad5a587f49b4eedb5c0e23dd97598c4 to your computer and use it in GitHub Desktop.
Save HookedBehemoth/6ad5a587f49b4eedb5c0e23dd97598c4 to your computer and use it in GitHub Desktop.
#!/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