Wikipedia: Update page parsing.

master
Valentin Lorentz 2013-02-01 20:19:19 +01:00
parent 190df19e8f
commit 7eef233762
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class Wikipedia(callbacks.Plugin):
'don\'t expect anything useful...') % (search, search)
else:
##### etree!
p = tree.xpath("//div[@id='bodyContent']/p[1]")
p = tree.xpath("//div[@id='mw-content-text']/p[1]")
if len(p) == 0:
reply += _('Not found, or page bad formed.')
else: