User:Usernamekiran/Toolforge pywikibot tutorial
Appearance
- 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.