aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/crawler.py6
1 files 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 <html><body> 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:
bgstack15