Revision: 4062 Author: jitseniesen Date: 2007-08-18 07:35:12 +0000 (Sat, 18 Aug 2007)
Log Message: ----------- Change RLinkToNextPage in _ParseCategory() to prevent it matching the links in {{CategoryTOC}} as happened for instance on [[Category:Wikipedia requested photographs of dogs]] on English WP.
Modified Paths: -------------- trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2007-08-17 13:53:37 UTC (rev 4061) +++ trunk/pywikipedia/catlib.py 2007-08-18 07:35:12 UTC (rev 4062) @@ -177,7 +177,7 @@ '<div class\s?=\s?"thumb"\sstyle="[^"]*"><a href=".*?"\s?title\s?=\s?"([^"]*)"') ns = self.site().category_namespaces() # regular expression matching the "(next 200)" link - RLinkToNextPage = re.compile('&from=(.*?)" title="'); + RLinkToNextPage = re.compile('&from=(.*?)" title="[^"]*">next 200</a>');
currentPageOffset = startFrom while True:
pywikipedia-l@lists.wikimedia.org