abartov / wimgs

Wiki images and thumbnails bulk downloader
The Unlicense
8 stars 4 forks source link

undefined method `images' #3

Open Phcallefr opened 9 years ago

Phcallefr commented 9 years ago

Hello. When using wimgs, il get the following error

C:\dev\wimgs>ruby wimgs.rb --wiki fr.wikipedia.org Empty database created. reading article list... liste.txtdone! Checking database status... stale database! Adding articles from list, removing articles no longer on list, preserving status of existing article rows... is done! Stats: 2 total, 0 done, 0 partial, 2 not started. Completing image lists for 2 articles and storing image file names in DB... wimgs.rb:250:in block in <main>': undefined methodimages' for #MediawikiApi::Client:0x33fdfe0 (NoMethodError) from C:/dev/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3/database.rb .... and some more

mediawiki_api-0.5.0 is installed . In client.rb of this gem i indeed see no 'images' method. Could not find documentation on it. Is it deprecated ? thanks

abartov commented 9 years ago

Hi! Right now articles mode (as distinct from category mode) is not working, as it's relying on the older mediawiki_gateway API gem. I just need to rewrite the article mode to use the new mediawiki_api gem, but haven't gotten around to it. If you are able to do it yourself, I'd welcome a pull request. If not, I'll try to get around to it soon, now that I know someone needs it. :)

Phcallefr commented 9 years ago

Hello,

Thank you for your quick reply. I tried to rewrite part of the code, but was not successful – I am not a Ruby programmer. I choosed instead to write a quick application with C# and DotNetWikiBot. This program fulfils my (limited) needs and there is no more request from my part.

Regards

Philippe

De : Asaf Bartov [mailto:notifications@github.com] Envoyé : mardi 6 octobre 2015 23:48 À : abartov/wimgs Cc : Phcallefr Objet : Re: [wimgs] undefined method `images' (#3)

Hi! Right now articles mode (as distinct from category mode) is not working, as it's relying on the older mediawiki_gateway API gem. I just need to rewrite the article mode to use the new mediawiki_api gem, but haven't gotten around to it. If you are able to do it yourself, I'd welcome a pull request. If not, I'll try to get around to it soon, now that I know someone needs it. :)

— Reply to this email directly or view it on GitHub https://github.com/abartov/wimgs/issues/3#issuecomment-146011312 .Image supprimée par l'expéditeur.

abartov commented 9 years ago

I'm glad you found a different solution, and thanks for letting me know. I will still get around to fixing this soon. :)