[Pywikipedia-l] SVN: [6054] trunk/pywikipedia/wikipedia.py

a_engels at svn.wikimedia.org a_engels at svn.wikimedia.org
Mon Nov 3 23:21:39 UTC 2008


Revision: 6054
Author:   a_engels
Date:     2008-11-03 23:21:37 +0000 (Mon, 03 Nov 2008)

Log Message:
-----------
Some debug changes that I forgot to remove before submitting

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-11-03 16:21:01 UTC (rev 6053)
+++ trunk/pywikipedia/wikipedia.py	2008-11-03 23:21:37 UTC (rev 6054)
@@ -5264,18 +5264,13 @@
         while True:
             api_url = self.api_address()
             startEncoded = urllib.quote(start.encode(self.encoding()))
-            api_url += 'action=query&format=xml&list=allpages&apfrom=%s&aplimit=%i&apnamespace=%i' % (startEncoded, 10, namespace)
-            #api_url += 'action=query&format=xml&list=allpages&apfrom=%s&aplimit=%i&apnamespace=%i' % (startEncoded, config.special_page_limit, namespace)
+            api_url += 'action=query&format=xml&list=allpages&apfrom=%s&aplimit=%i&apnamespace=%i' % (startEncoded, config.special_page_limit, namespace)
             # TODO: support includeredirects="only" like in the old method
             if not includeredirects:
                 api_url += '&apfilterredir=nonredirects'
 
             if throttle:
                 get_throttle()
-            f = codecs.open('url.txt', 'w', 'utf-8')
-            f.write(api_url)
-            f.close()
-            output(api_url)
             text = self.getUrl(api_url)
 
             soup = BeautifulSoup(text,





More information about the Pywikipedia-l mailing list