开发者

wget and strange file extensions

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜