| David_Hedlund added a comment. |
In T198817#4398574, @zhuyifei1999 wrote:In T198817#4398554, @Dvorapa wrote:First of all, the file should have correct Pywikibot license.
That's a non-issue. I sent this quick-and-dirty script to FSF so they can use it whatever they want. If license is a concern, the licenses allows re-publishing under a different license.
Yes that is how everything started. I'm a Free Software Foundation (FSF) intern during this summer and I work with the tech team. I requested zhuyifei1999 to write this script for me since I needed to batch upload .wiki files to directory.fsf.org.
Finally for this purpose we already have pagefromfile.py or a little bit easier add_text.py
We have discussed this. pagefromfile.py cannot read from a non-seekable stream (such as pipe) and add_text.py cannot do page replacements when the page exists.
You can also use basic.py
Only works on existing pages.
The script authored by zhuyifei1999 is very useful since it 1) updates pages if it already exist and create pages if they don't exist. 2) doesn't require files that starts with "{{-start-}}" and ends with "{{-stop-}}" -- we will batch upload 25 000 .wiki files so it will be a tedious task to generate 25 000 files just for this purpose.
Cc: zhuyifei1999, 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
