Skip to content

Instantly share code, notes, and snippets.

@luckylittle
Last active May 16, 2023 23:17
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 luckylittle/7b336a4b2edd9e8bf826de178a150475 to your computer and use it in GitHub Desktop.
Save luckylittle/7b336a4b2edd9e8bf826de178a150475 to your computer and use it in GitHub Desktop.
Manning Publications Ebooks Downloader
#!/bin/zsh
# Use your own Cookie on line 16!
while IFS=";" read -r title url filetype
do
echo "Downloading ${title}, filetype ${pdf}..."
echo ""
curl -L -kv "${url}" \
-O \
-J \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8,cs;q=0.7,sk;q=0.6' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Cookie: ' \
-H 'Pragma: no-cache' \
-H 'Referer: https://www.manning.com/dashboard' \
-H 'Sec-Fetch-Dest: document' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-Fetch-User: ?1' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5650.0 Safari/537.36' \
-H 'sec-ch-ua: "Chromium";v="111", "Not(A:Brand";v="8"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
# --socks5 '127.0.0.1:3128' \
--compressed
done < dl_links.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment