Help
Log in to Lingua Libre with Pywikibot
Here are the steps, to log in to Lingua Libre using Pywikibot.
Manual:Pywikibot/BotPasswords may give more details.
Install and configure Pywikibot
See Manuel:Pywikibot/Installation.
Create bot account with Special:BotPasswords
- With your user account (example: Pamputt), go to Special:BotPasswords
- Enter the name of your bot (for example: PamputtBot) and click on "Create".
- Select the right you want to give to your bot. Usually "High-volume editing", "Edit existing pages" and "Create, edit, and move pages" are enough.
- At the bottom of the page, click on "Create".
- You should arrive on a page like this one. The red part is the bot password
- At different step, you may be redirected to OAuth Wikimedia Commons to log in with your user account.
Fill user-config.py and user-password.py
using generate_user_files.py script
- Run python pwb.py generate_user_files
- Select "5" (lingualibre) for the family.
- Validate the "language code" that is "lingualibre".
- Enter your bot name on LinguaLibre (for example: PamputtBot)
- Enter "No" not to add any other project.
- Enter "y" at the question "Do you want to add a BotPassword for USERNAME?"
- Enter your "bot name" (example: PamputtBot) at the question "BotPassword's "bot name" for USERNAME:"
- Enter the password created on Special:BotPassword at the question "BotPassword's "password" for "PamputtBot" (no characters will be shown)"
by hand
- In the main Pywikibot directory, create user-config.py
- Add the following lines:
family = 'lingualibre' mylang = 'lingualibre' usernames['lingualibre']['lingualibre'] = 'PamputtBot' password_file = "user-password.py"
- In the main Pywikibot directory, create user-password.py
- Add the following lines:
('USERNAME', BotPassword('BOTNAME', 'superpassword'))
For example:
('Pamputt', BotPassword('PamputtBot', 'rj7daxj8pa7lxp2abel8e82aees1kg5n'))
Login check
- Run python pwb.py login
Something like "Logged in on lingualibre:lingualibre as PamputtBot." should be displayed.
See also
Audio files | How to create a frequency list? • Convert files formats • Denoise files • Rename and mass rename |
---|---|
Bots | Help:Bots • LinguaLibre:Bot • Help:Log in to Lingua Libre with Pywikibot • Lingua Libre Bot (gh) • Olafbot • PamputtBot • Dragons Bot (gh) |
MediaWiki | MediaWiki: Help:Documentation opérationelle Mediawiki • Help:Database structure • Help:CSS • Help:Rename • Help:OAuth • LinguaLibre:User rights (rate limit) • Module:Lingua Libre record & {{Lingua Libre record}} • JS scripts: MediaWiki:Common.js • LastAudios.js • SoundLibrary.js • ItemsSugar.js • LexemeQueriesGenerator.js (pad) • Sparql2data.js (pad) • LanguagesGallery.js (pad) • Gadgets: Gadget-LinguaImporter.js • Gadget-Demo.js • Gadget-RecentNonAudio.js |
Queries | Help:APIs • Help:SPARQL • SPARQL (intermediate) (stub) • SPARQL for maintenance (stub) • Lingualibre:Wikidata (stub) |
Reuses | Help:Download datasets • Help:Embed audio in HTML |
Categories | Category:Technical reports |