aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-22 01:24:27 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-22 01:24:27 +0100
commit0227797ddb3eff0299f20976cd50f2c71ef205c9 (patch)
tree50c95392c7d32180800afe42041b39e085f8b85d
parentPrevents BeautifulSoup4 from adding extra <html><body> tags to the soup with ... (diff)
downloadnewspipe-0227797ddb3eff0299f20976cd50f2c71ef205c9.tar.gz
newspipe-0227797ddb3eff0299f20976cd50f2c71ef205c9.tar.bz2
newspipe-0227797ddb3eff0299f20976cd50f2c71ef205c9.zip
bug fix...
-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