Pybot Wiki
Line 19: Line 19:
   
 
== Parameters ==
 
== Parameters ==
  +
{|class=wikitable
'''-all'''
 
  +
!Name
:''reloads watchlists for all wikis where a watchlist is alrady present
 
  +
!Function
'''-new'''
 
  +
|-
:''loads watchlists for all wikis referenced in [[user-config.py]]; if you use your bot account on several different wikis, this parameter will look at your watchlist on all those wikis
 
  +
| -all
 
|reloads watchlists for all wikis where a watchlist is already present
  +
|-
  +
| -new
 
|loads watchlists for all wikis referenced in [[user-config.py]]; if you use your bot account on several different wikis, this parameter will look at your watchlist on all those wikis
  +
|}
  +
 
== Use cases ==
 
== Use cases ==
 
No ''actual'' use cases are known. But it's a cool script. One imagines.
 
No ''actual'' use cases are known. But it's a cool script. One imagines.

Revision as of 20:17, 15 December 2012

This page describes a script. In general, it refers to the script in its current form, but pywikpedia coders tend only to add functions, not take them away. Chances are that you'll be able to use most of the information on the page, regardless of the age of your installation.

Watchlist.py
Creator:
Daniel Herding
Pywikipedia team
Code location: mediawiki repository
What it does: Produces your bot account's watchlist
Complexity: Basic
Applicability: all MediaWiki installations

Watchlist.py is a script that reproduces a watchlist — specifically, the list of pages being followed by the account to which pywikipedia is currently logged in.

Syntax

The syntax for this script is:

python watchlist.py

Parameters

Name Function
-all reloads watchlists for all wikis where a watchlist is already present
-new loads watchlists for all wikis referenced in user-config.py; if you use your bot account on several different wikis, this parameter will look at your watchlist on all those wikis

Use cases

No actual use cases are known. But it's a cool script. One imagines.