bash - Linux: WGET - scheme missing using -i option -
i trying download multiple files yahoo finance using wget.
to used python script generate text file urls need. when downloading single file (a csv file) using following code:
wget ichart.finance.yahoo.com/table.csv?s=biom3.sa&a=00&b=5&c=1900&d=04&e=21&f=2013&g=d&ignore=.csv
everything goes ok! however, when option -i added , instead of reading url directly, instead reading file, error:
invalid url ichart.finance.yahoo.com/table.csv?s=biom3.sa&a=00&b=5&c=1900&d=04&e=21&f=2013&g=d&ignore=.csv: scheme missing
the file contains urls text file single url in each line. urls 1 in first example, different parameters.
is there way correct this?
thanks lot reading!!
to solve problem added double-quotes on links , web protocol. example:
"http://ichart.finance.yahoo.com/table.csv?s=biom3.sa&a=00&b=5&c=1900&d=04&e=21&f=2013&g=d&ignore=.csv"
Comments
Post a Comment