mediawiki-client-tools / mediawiki-dump-generator

Python 3 tools for downloading and preserving wikis
https://github.com/mediawiki-client-tools/mediawiki-scraper
GNU General Public License v3.0
89 stars 14 forks source link

Fix: `Delay()` stuck when `Ctrl+C` pressed #90

Closed yzqzss closed 1 year ago

yzqzss commented 1 year ago

Fix: #89

robkam commented 1 year ago

It no longer gives the option to resume or start a fresh dump

$ dumpgenerator  --failfast --xml --xmlrevisions --images http://group2.mediawiki.demo.save-web.org/mediawiki-1.35.9/api.php

snip

Warning!: "./group2mediawikidemosave_weborg_mediawiki_1359-20230115-wikidump" path exists
You have selected: YES
Loading config file...
Resuming previous dump process...
yzqzss commented 1 year ago

It no longer gives the option to resume or start a fresh dump

Did you use the --failfast parameter? This is the expected behavior. In fact, this is due to an upstream typo that causes --failfast to not exit the program as expected when the directory already exists.

robkam commented 1 year ago

I see. It works okay with $ dumpgenerator --xmlrevisions --images http://group2.mediawiki.demo.save-web.org/mediawiki-1.35.9/api.php