[14:47:16] [telegram] Anyone knows about how to work with CommonsDownloader [14:47:26] [telegram] https://pypi.org/project/CommonsDownloader/ [14:47:36] [telegram] The functions do not work there [14:47:47] [telegram] :( [15:54:51] [telegram] Haven't heard of it. But can you describe what is the actual problem you are trying to solve? (re @Csisc1994: Anyone knows about how to work with CommonsDownloader) [18:23:00] [telegram] I have tried commonsdownloader.commonsdownloader.download_from_category() (re @Thecladis: Haven't heard of it. But can you describe what is the actual problem you are trying to solve?) [18:23:20] [telegram] However, I received Traceback (most recent call last): [18:23:20] [telegram] File "C:/Users/Houcemeddine Turki/Common.py", line 2, in [18:23:22] [telegram] commonsdownloader.commonsdownloader.commonsdownloader.download_from_category("German_Shepherd_Dog","German_Shepherd_Dog",200) [18:23:23] [telegram] AttributeError: module 'commonsdownloader' has no attribute 'commonsdownloader' [18:24:08] [telegram] I mean what do you want to achieve in the end? Download all images in a category? [18:24:16] [telegram] Yes [18:24:48] [telegram] +1 (re @Thecladis: I mean what do you want to achieve in the end? Download all images in a category?) [18:26:19] [telegram] https://commons.wikimedia.org/wiki/Commons:Download_tools there seem to also be some other tools, have you tried those? [18:26:24] [telegram] Maybe it's written for python2 and you're using python3? Or the other way around? [18:27:39] [telegram] I have seen the source code of CommonsDownloader on GitHub and I found that it is built upon several libraries that are no longer maintained. (re @MaartenDammers: Maybe it's written for python2 and you're using python3? Or the other way around?) [18:28:06] [telegram] It was written in 2015. So, this is accurate. (re @MaartenDammers: Maybe it's written for python2 and you're using python3? Or the other way around?) [18:28:42] [telegram] I tried Imker. It worked. However, I have to parse categories one by one. (re @Thecladis: https://commons.wikimedia.org/wiki/Commons:Download_tools there seem to also be some other tools, have you tried those?) [18:28:53] [telegram] Should be easy to do this in pywikibot [18:29:00] [telegram] With a couple lines of python [18:29:32] [telegram] I will be interesting in knowing how to do this. (re @MaartenDammers: Should be easy to do this in pywikibot) [18:30:59] [telegram] Pywikibot is a framework and a set of scripts. You can use the framework for this. The pagegenerators can be used to get a set of pages (all the images in a category for example) and for each FilePage you can download it. [18:37:14] [telegram] This returns Commons pages not images (re @MaartenDammers: Pywikibot is a framework and a set of scripts. You can use the framework for this. The pagegenerators can be used to get a set of pages (all the images in a category for example) and for each FilePage you can download it.) [18:37:51] [telegram] FilePage objects yes [18:38:45] [telegram] https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#pywikibot.page.FilePage [18:39:24] [telegram] I will try this. Thank you. (re @MaartenDammers: https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.page.html#pywikibot.page.FilePage) [19:19:35] [telegram] how to dump a whole media wiki? [19:20:00] [telegram] well you can use mysqldump to actually dump the db [19:20:09] [telegram] without server access [19:20:20] [telegram] just over http [19:20:47] [telegram] or you can put all names to Special:Export [19:20:56] [telegram] names of all the pages [19:21:36] [telegram] oh good idea. [19:21:48] [telegram] thank you [19:23:36] And hope it doesn't timeout [19:23:43] [telegram] xD (re @wmtelegram_bot: [irc] And hope it doesn't timeout)