binbot added a comment.

I don't know listpages as I always used compat.

-save/savenew (with flush() after every save) works reliably even for very slow, long search tasks. Even if there is a crush somewhere, or I have to disconnect my computer from network, the result is there, and I can continue later with -xmlstart from the last saved title (or whatever the script suggested me when I press ctrl c).
I suppose, this is not the case with > (and it still my be operating system dependent).

More to say, if it lasts too long, I can work parallel. When the bot saved 300 titles and still works on the next 3000, I can process the saved titles from another command window. This is much more flexibility than that of > / >>.

I extensively use both save and savenew.

Saveexc is different, it is created during the work. For using > you should create two output streams (one for console output, one for exceptions), and all data might be lost upon unexpected termination.

In compat -save works fine for me either with -always or without it.


TASK DETAIL
https://phabricator.wikimedia.org/T144692

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: binbot
Cc: valhallasw, jayvdb, Xqt, Ninovolador, Ricordisamoa, gerritbot, XZise, Vituzzu, Dvorapa, Thibaut120094, 4nn1l2, Omegat, bzimport, Aklapper, pywikibot-bugs-list, binbot, Mdupont, JJMC89, droid, Jay8g
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to