Failed regexp now handled in googlegroups.

This commit is contained in:
Jeremy Fincher 2003-06-02 05:48:57 +00:00
parent c5e1e8e89a
commit 663a9f75ae

View File

@ -185,6 +185,8 @@ class GooglePrivmsgRegexp(callbacks.PrivmsgRegexp):
fd.close()
if match.group(0).find('&prev=/') >= 0:
path = re.search('view the <a href=([^>]+)>no',text)
if path is None:
return
url = 'http://groups.google.com'
request = urllib2.Request('%s%s' % (url,path.group(1)),
headers={'User-agent': 'Mozilla/4.0 (compatible; MSIE 5.5;'