How to use curl commnsf to download from url list file efficiently? or Best way to run curl commnsf t

20 Replies, 2224 Views

For weird chars, encode the URLs first. Python’s `urllib.parse.quote` can help.

For curl commnsf to download from url list file, here’s a hacky one-liner:

`while read url; do curl -O "$(python3 -c "import urllib.parse; print(urllib.parse.quote('''$url'''))")"; done < urls.txt`

Messy but works.

Messages In This Thread



Users browsing this thread: 1 Guest(s)