Revision: 7076
Author: mfarag
Date: 2009-07-17 22:57:00 +0000 (Fri, 17 Jul 2009)
Log Message:
-----------
no longer in use
Modified Paths:
--------------
trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/welcome.py
===================================================================
--- trunk/pywikipedia/welcome.py 2009-07-17 20:29:14 UTC (rev 7075)
+++ trunk/pywikipedia/welcome.py 2009-07-17 22:57:00 UTC (rev 7076)
@@ -3,7 +3,7 @@
"""
Script to welcome new users. This script works out of the box for Wikis that
have been defined in the script. It is currently used on the Dutch, Norwegian,
-Arabian, Albanian, Italian Wikipedia, Wikimedia Commons and English Wikiquote.
+Albanian, Italian Wikipedia, Wikimedia Commons and English Wikiquote.
Note: You can download the latest version available
from here: http://botwiki.sno.cc/wiki/Python:Welcome.py
@@ -11,7 +11,6 @@
Ensure you have community support before running this bot!
URLs to current implementations:
-* Arabic Wikinews: http://ar.wikinews.org/wiki/ويكي_الأخبار:سجل_الترحيب
* Wikimedia Commons: http://commons.wikimedia.org/wiki/Commons:Welcome_log
* Dutch Wikipedia: http://nl.wikipedia.org/wiki/Wikipedia:Logboek_welkom
* Italian Wikipedia: http://it.wikipedia.org/wiki/Wikipedia:Benvenuto_log
Revision: 7072
Author: alexsh
Date: 2009-07-15 21:32:58 +0000 (Wed, 15 Jul 2009)
Log Message:
-----------
self.site().linksearch: add API available check (too difficult to talk exception and process when query.GetData work, list format will different if yeild linksearch again)
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2009-07-15 21:05:47 UTC (rev 7071)
+++ trunk/pywikipedia/wikipedia.py 2009-07-15 21:32:58 UTC (rev 7072)
@@ -5810,6 +5810,13 @@
"""Yield Pages from results of Special:Linksearch for 'siteurl'."""
cache = []
R = re.compile('title ?=\"([^<>]*?)\">[^<>]*</a></li>')
+ #Check API can work
+ if config.use_api:
+ try:
+ d = self.api_address()
+ del d
+ except NotImplementedError:
+ config.use_api = False
urlsToRetrieve = [siteurl]
if not siteurl.startswith('*.'):