As far as I see I can test my bot on test.wikimedia before running it on Wikipedia. I know a bit of Python and how bots work. But I do not where to start. What would the first lines of code of my bot look like?
uto, 16. jul 2024. 00:09 Strainu <strain...@gmail.com> је написао/ла: > Hey Vladimir, > > Before starting to write bots, it's important to understand how they work: > they are usually run under a dedicated account (but can be tested using any > account) and YOU (the human running the code) are responsible for both the > code and the results. I suggest you read the sr.wiki page on the matter [1] > and a simple pywikibot tutorial [2] in order to understand the basics. > While the tutorial does not explicitly describe the use of `replace.py`, it > describes other similar scripts. Locally on sr.wiki, user:dungodung and > others are able to provide guidance. > > Best, > Strainu > > [1] > https://sr.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%91%D0%BE%D1%82%D0%BE%D0%B2%D0%B8 > [2] > https://www.mediawiki.org/wiki/Manual:Pywikibot/Workshop_Materials/How_to_run_basic_scripts_(self-study) > > În lun., 15 iul. 2024 la 16:41, Vladimir Nimčević <nvlado1...@gmail.com> > a scris: > >> You mean I can connect the replace script to my Wikipedia account? >> >> On Monday, July 15, 2024, Bináris <wikipo...@gmail.com> wrote: >> >>> For such tasks manual supervising is highly recommended, therefore the >>> best place is your own computer. Pywikibot is able to do such tasks, see >>> replace.py and fixes.py, you have to deal with the correction itself, not >>> with creating bot. You may download Pywikibot and customize fixes.py or >>> user-fixes.py. >>> >>> >>> Vladimir Nimčević <nvlado1...@gmail.com> ezt írta (időpont: 2024. júl. >>> 15., H, 14:01): >>> >>>> Hi there >>>> >>>> I would like to create a python bot whose task would be to correct >>>> typos and grammatical errors. :) >>>> >>>> Where should I upload the script for the bot to work? >>>> >>>> The bot would be active on Wikipedia in Serbian. >>>> >>>> Sincerely >>>> N >>>> _______________________________________________ >>>> pywikibot mailing list -- pywikibot@lists.wikimedia.org >>>> Public archives at >>>> https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/ANLV25AKYAOWH6S4KBGX2SEXXDIZXT6W/ >>>> To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org >>>> >>> >>> >>> -- >>> Bináris >>> >> _______________________________________________ >> pywikibot mailing list -- pywikibot@lists.wikimedia.org >> Public archives at >> https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/W33EMBZQ4G5GK2LJKBIIXBCX6EJ63POE/ >> To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org >> > _______________________________________________ > pywikibot mailing list -- pywikibot@lists.wikimedia.org > Public archives at > https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/BYTAT2DL2TODKCPRBH3X45LYC7ADLSWC/ > To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org >
_______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/XAFNR5KBRVTOD2YZFMPMYKWXUNCCEQ46/ To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org