[Pywikipedia-l] SVN: [5473] trunk/pywikipedia

nicdumz at svn.wikimedia.org nicdumz at svn.wikimedia.org
Fri May 30 12:00:07 UTC 2008


Revision: 5473
Author:   nicdumz
Date:     2008-05-30 12:00:07 +0000 (Fri, 30 May 2008)

Log Message:
-----------
tools.wikimedia.de is obsolete, changing it to toolserver.org

Modified Paths:
--------------
    trunk/pywikipedia/add_text.py
    trunk/pywikipedia/checkimages.py
    trunk/pywikipedia/family.py
    trunk/pywikipedia/imagerecat.py
    trunk/pywikipedia/udp-log.py

Modified: trunk/pywikipedia/add_text.py
===================================================================
--- trunk/pywikipedia/add_text.py	2008-05-30 11:39:10 UTC (rev 5472)
+++ trunk/pywikipedia/add_text.py	2008-05-30 12:00:07 UTC (rev 5473)
@@ -88,13 +88,13 @@
     return text
 
 def untaggedGenerator(untaggedProject, limit = 500):
-    """ Function to get the pages returned by this tool: http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php """
+    """ Function to get the pages returned by this tool: http://toolserver.org/~daniel/WikiSense/UntaggedImages.php """
     lang = untaggedProject.split('.', 1)[0]
     project = '.' + untaggedProject.split('.', 1)[1]
     if lang == 'commons':
-        link = 'http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php?wikifam=commons.wikimedia.org&since=-100d&until=&img_user_text=&order=img_timestamp&max=100&order=img_timestamp&format=html'
+        link = 'http://toolserver.org/~daniel/WikiSense/UntaggedImages.php?wikifam=commons.wikimedia.org&since=-100d&until=&img_user_text=&order=img_timestamp&max=100&order=img_timestamp&format=html'
     else:
-        link = 'http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php?wikilang=' + lang + '&wikifam=' + project + '&order=img_timestamp&max=' + str(limit) + '&ofs=0&max=' + str(limit)
+        link = 'http://toolserver.org/~daniel/WikiSense/UntaggedImages.php?wikilang=' + lang + '&wikifam=' + project + '&order=img_timestamp&max=' + str(limit) + '&ofs=0&max=' + str(limit)
     text = pageText(link)
     #print text
     regexp = r"""<td valign='top' title='Name'><a href='http://.*?\.org/w/index\.php\?title=(.*?)'>.*?</a></td>"""

Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py	2008-05-30 11:39:10 UTC (rev 5472)
+++ trunk/pywikipedia/checkimages.py	2008-05-30 12:00:07 UTC (rev 5473)
@@ -42,7 +42,7 @@
 
     -url[:#]	        - Define the url where are the images
 
-    -untagged[:#]       - Use daniel's tool as generator ( http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php )
+    -untagged[:#]       - Use daniel's tool as generator ( http://toolserver.org/~daniel/WikiSense/UntaggedImages.php )
 
 ---- Istructions for the real-time settings  ----
 * For every new block you have to add:
@@ -648,9 +648,9 @@
         lang = untaggedProject.split('.', 1)[0]
         project = '.%s' % untaggedProject.split('.', 1)[1]
         if lang == 'commons':
-            link = 'http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php?wikifam=commons.wikimedia.org&since=-100d&until=&img_user_text=&order=img_timestamp&max=100&order=img_timestamp&format=html'
+            link = 'http://toolserver.org/~daniel/WikiSense/UntaggedImages.php?wikifam=commons.wikimedia.org&since=-100d&until=&img_user_text=&order=img_timestamp&max=100&order=img_timestamp&format=html'
         else:
-            link = 'http://tools.wikimedia.de/~daniel/WikiSense/UntaggedImages.php?wikilang=%s&wikifam=%s&order=img_timestamp&max=%s&ofs=0&max=%s' % (lang, project, limit, limit)         
+            link = 'http://toolserver.org/~daniel/WikiSense/UntaggedImages.php?wikilang=%s&wikifam=%s&order=img_timestamp&max=%s&ofs=0&max=%s' % (lang, project, limit, limit)         
         text = self.site.getUrl(link, no_hostname = True)
         regexp = r"""<td valign='top' title='Name'><a href='http://.*?\.org/w/index\.php\?title=(.*?)'>.*?</a></td>"""
         results = re.findall(regexp, text)

Modified: trunk/pywikipedia/family.py
===================================================================
--- trunk/pywikipedia/family.py	2008-05-30 11:39:10 UTC (rev 5472)
+++ trunk/pywikipedia/family.py	2008-05-30 12:00:07 UTC (rev 5473)
@@ -2161,7 +2161,7 @@
 
         # A dictionary where keys are family codes that can be used in
         # inter-family interwiki links. Values are not used yet.
-        # Generated from http://tools.wikimedia.de/~daniel/interwiki-en.txt:
+        # Generated from http://toolserver.org/~daniel/interwiki-en.txt:
         # remove interlanguage links from file, then run
         # f = open('interwiki-en.txt')
         # for line in f.readlines():

Modified: trunk/pywikipedia/imagerecat.py
===================================================================
--- trunk/pywikipedia/imagerecat.py	2008-05-30 11:39:10 UTC (rev 5472)
+++ trunk/pywikipedia/imagerecat.py	2008-05-30 12:00:07 UTC (rev 5473)
@@ -92,7 +92,7 @@
         Get category suggestions from commonshelper. Parse them and return a list of suggestions.        
         '''
         parameters = urllib.urlencode({'i' : imagepage.titleWithoutNamespace(), 'r' : 'on', 'go-clean' : 'Find+Categories'})        
-        commonsHelperPage = urllib.urlopen("http://tools.wikimedia.de/~daniel/WikiSense/CommonSense.php?%s" % parameters)        
+        commonsHelperPage = urllib.urlopen("http://toolserver.org/~daniel/WikiSense/CommonSense.php?%s" % parameters)        
         
         commonsenseRe = re.compile('^#COMMONSENSE(.*)#USAGE(\s)+\((?P<usage>(\d)+)\)(.*)#KEYWORDS(\s)+\((?P<keywords>(\d)+)\)(.*)#CATEGORIES(\s)+\((?P<catnum>(\d)+)\)\s(?P<cats>(.*))\s#GALLERIES(\s)+\((?P<galnum>(\d)+)\)(.*)#EOF$', re.MULTILINE + re.DOTALL)
         matches = commonsenseRe.search(commonsHelperPage.read())

Modified: trunk/pywikipedia/udp-log.py
===================================================================
--- trunk/pywikipedia/udp-log.py	2008-05-30 11:39:10 UTC (rev 5472)
+++ trunk/pywikipedia/udp-log.py	2008-05-30 12:00:07 UTC (rev 5473)
@@ -8,7 +8,7 @@
 import sys, re, socket
 __version__ = '$Id$'
 
-TARGET_HOST = 'tools.wikimedia.de'
+TARGET_HOST = 'toolserver.org'
 TARGET_PORT = 42448
 
 input = sys.stdin.read()





More information about the Pywikipedia-l mailing list