[Pywikipedia-l] Replace.py should save -- please comment

Dr. Trigon dr.trigon at surfeu.ch
Sat Oct 23 12:38:07 UTC 2010


Am 23.10.2010 12:13, schrieb Bináris:
> I am ready! I will upload it today, after a few more tests.
>
>  > -save writes and appends (primary mode)
>  > -savenew writes and overwrites
> This is the final. We can write the titles into a file, and this will
> make the work much faster and more comfortable! No more many thousand
> dummy edits of my subpage for preparing replacements, no more waiting
> for the server, no more spamming the bot's contribution list. This was
> my dream.
>
> You can upload the ready list to a wikipage as a numbered list with one
> edit, if you want to use it online with -links, or you can directly work
> from it with -file.
>
> The script also writes a dissection line after every 100 title. This is
> useful if, e. g., you have 3000 titles to work on and after processing
> 1000 items you want to clear your file and you have to find the actual
> title. I have done this many times, that's why I know this is important.
>
> For that, I had to implement an editcounter. So why not use it when
> making the real replacements? Replace.py now writes the number of pages
> edited upon ending its task or quitting with "q". Not applicable with
> ctrl C. Here is a little bug, the counter cannot check if put_async
> _will_ be successful.

you could try dooing so by using threading.Event or similar (e.g.
signal)

Greetings

>
> Enjoy. :-)
>
> Bináris
>
>
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l




More information about the Pywikipedia-l mailing list