Revision: 4174
Author: cosoleto
Date: 2007-09-02 09:43:45 +0000 (Sun, 02 Sep 2007)
Log Message:
-----------
catlib.py no longer recognizes images, regex fix
Modified Paths:
--------------
trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py
===================================================================
--- trunk/pywikipedia/catlib.py 2007-09-01 22:00:00 UTC (rev 4173)
+++ trunk/pywikipedia/catlib.py 2007-09-02 09:43:45 UTC (rev 4174)
@@ -174,7 +174,7 @@
Rsubcat = re.compile(
'CategoryTreeLabelCategory\"\s?href=\".+?\">(.+?)</a>')
Rimage = re.compile(
- '<div
class\s?=\s?\"thumb\"\sstyle=\"[^\"]*\"><a
href=\".*?\"\s?title\s?=\s?\"([^\"]*)\"')
+ '<div
class\s?=\s?\"thumb\"\sstyle=\"[^\"]*\">(?:<div
style=\"[^\"]*\">)?<a
href=\".*?\"(?:\sclass="image")?\stitle\s?=\s?\"([^\"]*)\"')
ns = self.site().category_namespaces()
# regular expression matching the "(next 200)" link
RLinkToNextPage = re.compile('&from=(.*?)" title="');
Show replies by date