Jump to content

User:Usernamekiran/Toolforge pywikibot tutorial

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Usernamekiran (talk | contribs) at 02:11, 29 October 2022 (indent level). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
  • Decide if you need to use a bot vs user script.
  • Username, tool name, programming language.
  • Apply for a ToolForge account.
    • It is different from your normal Wikimedia/SUL account.
    • It takes around week for toolforge account to be approved.
  • Meanwhile, install pywikibot on your computer.
    • Do a lot of testing. Inaccurate code in automated mode can be very dangerous.
  • Generate an SSH key.
  • After testing your bot, and approval for toolforge account, install pywikibot on toolforge (you need SSH key for that).
  • Protect your files containing passwords with 0600 permission.
  • Also get an FTP client (for file transfers).
  • Run your tasks at regular intervals using kubernetes cronjob.
  • Thats it. Your bot is now successfully operational.