Data Processing in Shell
Susan Sun
Data Person
Save a list of file locations in a text file.
cat url_list.txt
https://websitename.com/datafilename001.txt
https://websitename.com/datafilename002.txt
...
Download from the URL locations stored within the file url_list.txt
using -i
.
wget -i url_list.txt
Set upper download bandwidth limit (by default in bytes per second) with --limit-rate
.
Syntax:
wget --limit-rate={rate}k {file_location}
Example:
wget --limit-rate=200k -i url_list.txt
Set a mandatory pause time (in seconds) between file downloads with --wait
.
Syntax:
wget --wait={seconds} {file_location}
Example:
wget --wait=2.5 -i url_list.txt
curl
advantages:
Wget
advantages:
Data Processing in Shell