User:Legoktm/Pywikipedia
From Wikipedia, the free encyclopedia
What to look at today:
Contents |
[edit] Installing Python
Download Python to your desktop from here (direct link). Unzip the file and run the installer. Python should now be successfully installed.
[edit] Installing Pywikipedia
- Download the file
pywikipedia-nightly.tar.bz2from here. (direct link) - Unzip the file
- Move the
pywikipediafolder to your "home" folder.
[edit] Setting Your Configuration
- Open the application "TextEdit"
- Copy and paste the following:
mylang = 'en' family = 'wikipedia' usernames['wikipedia']['en'] = 'USERNAME' console_encoding = 'utf-8'
mylang: choose language of the wiki you want to edit (for commons use "commons" without the quotes)family: what WMF wiki you want to edit. (You can edit some other non-WMF wikis, list at Botwiki)usernames: first bracket isfamily, second bracket ismylangandUSERNAMEis the user who will be making the edits.
- Save the file as
user-config.pyin yourpywikipediafolder. (Text edit probably will make you add.txtat the end, but you can manually remove it)
[edit] Running the Program
- Open the application
Terminal, which is can be found in theUtilitiesfolder inApplications. - Type in
cd pywikipedia - Then
python login.pyYou will be asked for your password. Your password will not show up for security reasons, but it will be entered. (You only have to do this step the first time.) - Type in
pythonand then the name of the script you wish to run. Example:python welcome.py
[edit] Easy Scripts
See botwiki:Template:Scripts for more
- Welcome.py Welcomes 50 newest users with
{{subst:welcome}} - Checkimages.py Checks last 80 image uploads and makes sure they have a proper source (Easier to use on Commons)
[edit] Need Help
- Go to the Botwiki (external link)
- Go to the IRC channel #botolatori (Main language is Italian, but English is also understood)

