Downloads files behind cloudflare's anti-bot page by passing cookies and user agent to another command.
- Python 3 or 2
- cfscrape
- wget (optional)
- curl (optional)
I made it for Linux, but it might work on other systems too.
If you have Arch Linux, get it from the AUR and use cfdl
to run it.
./cfdl.py -d curl -u http://example.com/file.zip
./cfdl.py -d wget -u http://example.com/file.zip
./cfdl.py -d wget -u http://example.com/file.zip -- -O newfile.zip
./cfdl.py -u http://example.com/file.zip -- my-downloader --cookies {c} --user-agent {a} --url {u}
./cfdl.py -d curl -H "Referer: example.org" -H "X-Custom: value" -a "Custom User-Agent" -u http://example.com/file.zip
makedepends=('cfdl')
DLAGENTS=('http::/usr/bin/cfdl -u %u -d curl -- -fLC - --retry 3 --retry-delay 3 -o %o'
'https::/usr/bin/cfdl -u %u -d curl -- -fLC - --retry 3 --retry-delay 3 -o %o')