From 0227797ddb3eff0299f20976cd50f2c71ef205c9 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 22 Feb 2015 01:24:27 +0100 Subject: bug fix... --- pyaggr3g470r/crawler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py index 41ba120e..85cdbdd0 100644 --- a/pyaggr3g470r/crawler.py +++ b/pyaggr3g470r/crawler.py @@ -133,10 +133,10 @@ def parse_feed(user, feed): # Prevents BeautifulSoup4 from adding extra tags # to the soup with the lxml parser. - if soup.body: - description = soup.body.next.decode() + if soup.html.body: + description = soup.html.body.decode_contents() elif soup.html: - description = soup.html.next.decode() + description = soup.html.decode_contents() else: description = soup.decode() except: -- cgit