| David_Hedlund added a comment. |
Finally for this purpose we already have pagefromfile.py or a little bit easier add_text.py. You can also use basic.py, which has the same functionality as add_text.py, but contains everything the proper Pywikibot script should have (so it is left here as an example to novice PWB script programmers).
Thanks, that's really useful. Can you please give me the lines needed for these scripts to do the same things as:
$ echo "Hello world" > Test.wiki
$ python pwb.py simpleedit.py "The edit summary" "Test" Test.wiki
TASK DETAIL
EMAIL PREFERENCES
To: David_Hedlund
Cc: saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapper, David_Hedlund, Andrewjhill, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapper, David_Hedlund, Andrewjhill, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
