Skip to content

Instantly share code, notes, and snippets.

@HookedBehemoth
Created March 1, 2024 23:38
Show Gist options
  • Select an option

  • Save HookedBehemoth/6ad5a587f49b4eedb5c0e23dd97598c4 to your computer and use it in GitHub Desktop.

Select an option

Save HookedBehemoth/6ad5a587f49b4eedb5c0e23dd97598c4 to your computer and use it in GitHub Desktop.

Revisions

  1. HookedBehemoth created this gist Mar 1, 2024.
    5 changes: 5 additions & 0 deletions dhl CLI
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/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'