Commonists / CommonsDownloader

Tool to download thumbnails of files from Wikimedia Commons
MIT License
28 stars 16 forks source link

Add support for downloading a category #9

Closed JeanFred closed 9 years ago

JeanFred commented 9 years ago

As a user, I want to download all images in a given Commons category.

JeanFred commented 9 years ago

Should be fairly easy to implement. A quick call to the API categorymembers and looping over the results. Probably want to filter out videos and GIFs? By MIME type?

PierreSelim commented 9 years ago

Not sure it's so "easy to call the API because ... you have to loop over the "continue" result for large categories which is pretty boring :)

PierreSelim commented 9 years ago

Tested on download_from_wikimedia_commons --category 'Media supported by Wikimedia France - Sèvres' --width 2000 it works http://commonists.org/wmfr_sevres.tar.bz2

JeanFred commented 9 years ago

@pierreselim Did you check the console logs ? Since 7dad7e6 and 3e1c728 CommonsDownloader will not crash when choking on a single file. And i think there should be choking files in there (like videos)