Overview of Pywikibot login methods
masterPywikibot provides several authentication methods for MediaWiki-based wikis, categorized by security level, automation capability, and specific use cases.
Summary of Methods
| Method | Secure | Auto login | Use Cases / Notes |
|---|---|---|---|
| BotPassword | ✅✅ | ✅ | Preferred for most bots; safe, scoped credentials. |
| OAuth | ✅✅ | ✅ | For complex bots, shared apps, or broader API access. |
| 2FA Login | ✅✅ | ❌ | For interactive admin scripts requiring Two-Factor Authentication. |
| Login with email token | ✅ | ❌ | For semi-automated bots or user supporting scripts. |
| Manual login | ❌ | ❌ | No longer supported on Wikimedia sites. |
| Cookie-based login | ➖ | ✅ | Session reuse; not a standalone method. |
| CentralAuth SUL login | ➖ | ✅ | Automatic across Wikimedia projects once logged in. |