bash - How to download all files from hidden directory -


i have download log files virtual directory within site. access virtual directory forbidden files accessible.

i have manually entered file names download

dir="mar" ((i=1;i<100;i++));    wget http://sz.dsyn.com/2014/$dir/log_$i.txt done 

the problem script not generic , of time need find out how many files there , tweak loop. there way trigger wget fetch files without me bothering specify exact count.

note: if use browser view http://sz.dsyn.com/2014/$dir, 403 forbidden. cant pull files via browser tool/extension.

first of check similar question if not looking for, need generate file of urls within , feed wget. e.g.

 wget --input-file=http://sz.dsyn.com/2014/$dir/filelist.txt 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -