开发者

wget and strange file extensions

开发者 https://www.devze.com 2023-03-28 02:52 出处:网络
I am having a bit of trouble grabbing some files that have a strange file structure. What do I mean exactly? http://downloads.cloudmade.com/americas/northern_america/united_states/district_of_columbia

I am having a bit of trouble grabbing some files that have a strange file structure. What do I mean exactly? http://downloads.cloudmade.com/americas/northern_america/united_states/district_of_columbia#downloads_breadcrumbs

Look at that example. I want to start at the root of the site and recursively grab all the files that end with *.shapefile.zip. wget appears to treat this as two separate files ending in .shapefile and .z开发者_C百科ip. Anyone have some wget goodness to help me get started on this one?


You can recursively wget specific file types with:

wget -A 'shapefiles.zip' -r <url> 

Although I don't think .shapefiles.zip is an extension of .zip but more that site's naming conventions

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号