Skip to content

abartov/wimgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wimgs - Wiki images downloader

Usage:

  1. To dump all images for a set of articles with titles listed in UTF-8 in (one per line), from Wiki , to directory :

ruby wimgs.rb --wiki --articles --images-dir Example: wimgs --wiki en.wikipedia.org --articles my_favorite_articles.txt --images-dir /home/moose/dump/images Example with abbreviated options: wimgs -w en.wikipedia.org -i my_favorite_articles.txt -d /home/moose/dump/images

--images-dir defaults to './images'

  1. To dump all images of a particular category on Commons, use --category instead of --articles:

ruby wimgs.rb --wiki commons.wikimedia.org --category "Images from Wiki Loves Africa 2014 in Ghana" --images-dir /home/moose/wlm_gh/images

  1. To NOT download the full/original resolution, but a given width, specify the maximum width using --width:

ruby wimgs.rb --wiki tr.wikipedia.org --articles my_favorite_turkish_articles.txt --width 800

  1. To NOT resume an interrupted dump, add the --no-resume (or -r) argument

  2. To only check and show the status of a dump, add the --status (or -s) argument. Nothing will be downloaded.

NOTE: wimgs will create a sqlite3 database in the current working directory named wimgs.db. If the database already exists, wimgs will attempt to resume the dump unless instructed not to, in which case the database will be recreated and any existing image files overwritten.

About

Wiki images and thumbnails bulk downloader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published