From c41b2c2109258b3f9af18284f49e0be2661d80f5 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 28 Mar 2003 01:43:08 +0000 Subject: [PATCH] Began fixing google groups parser. --- plugins/Forums.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Forums.py b/plugins/Forums.py index 2915111cc..5629d298e 100644 --- a/plugins/Forums.py +++ b/plugins/Forums.py @@ -48,11 +48,11 @@ import callbacks class Forums(callbacks.PrivmsgRegexp): threaded = True - _ggThread = re.compile(r'from thread "(.*?)"') - _ggGroup = re.compile(r'Newsgroups: (.*?)') + _ggThread = re.compile(r'
Subject: ([^<]+)
') + _ggGroup = re.compile(r'Newsgroups: ]+>([^<]+)') def googlegroups(self, irc, msg, match): r"http://groups.google.com/[^\s]+" - request = urllib2.Request(match.group(0), headers=\ + request = urllib2.Request(match.group(0)+'&frame=off', headers=\ {'User-agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)'}) fd = urllib2.urlopen(request) text = fd.read()