Home | Trees | Index | Help |
|
---|
Package pywikipedia :: Module mediawiki_messages |
|
Allows access to the MediaWiki messages, that's the label texts of the MediaWiki software in the current language. These can be used in other bots. The function refresh_messages() downloads all the current messages and saves them to disk. It is run automatically when a bot first tries to access one of the messages. It can be updated manually by running this script, e.g. when somebody changed the current message at the wiki. The texts will also be reloaded automatically once a month. Syntax: python mediawiki_messages [-all] [-debug] Command line options: -all - Reloads messages for all wikis where messages are already present -debug - Shows example messages after loading
Function Summary | |
---|---|
get(key,
site)
| |
main()
| |
creates missing directories for the given path and returns a normalized absolute version of the path. | |
refresh_all_messages()
| |
refresh_messages(site)
|
os
,
pickle
,
re
,
sys
,
time
,
pywikipedia.wikipedia
loaded
Function Details |
---|
makepath(path)creates missing directories for the given path and returns a normalized absolute version of the path. - if the given path already exists in the filesystem the filesystem is not modified. - otherwise makepath creates directories along the given path using the dirname() of the path. You may append a '/' to the path if you want it to be a directory path. from holger@trillke.net 2002/03/18 |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jul 03 17:07:36 2005 | http://epydoc.sf.net |