Skip to content

Instantly share code, notes, and snippets.

@gsamat
Last active April 21, 2017 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsamat/8114cf253a74b4a495b995f175dab08e to your computer and use it in GitHub Desktop.
Save gsamat/8114cf253a74b4a495b995f175dab08e to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in `seq 1 10`; do
curl "https://book-audio.com/find/allcards?sort=downloads&order=desc&excludeRead=0&withAudio=0&duration=any&page=$i&search=&extendedList=find&CSRF=9da4d4ea80aa46609636bf087a2e5c8c5eeda71d" -H 'Cookie: lang=en; lang=en; PHPSESSID=g4av701f51k9miak24pgqs9mr5' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-GB,en-US;q=0.8,en;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3053.3 Safari/537.36 OPR/46.0.2567.0 (Edition developer)' -H 'Accept: */*' -H 'Referer: https://book-audio.com/find' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --compressed > $i.json
cat *.json | jq -s 'add' > total.json
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment