diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-22 01:24:27 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-02-22 01:24:27 +0100 |
commit | 0227797ddb3eff0299f20976cd50f2c71ef205c9 (patch) | |
tree | 50c95392c7d32180800afe42041b39e085f8b85d /pyaggr3g470r/crawler.py | |
parent | Prevents BeautifulSoup4 from adding extra <html><body> tags to the soup with ... (diff) | |
download | newspipe-0227797ddb3eff0299f20976cd50f2c71ef205c9.tar.gz newspipe-0227797ddb3eff0299f20976cd50f2c71ef205c9.tar.bz2 newspipe-0227797ddb3eff0299f20976cd50f2c71ef205c9.zip |
bug fix...
Diffstat (limited to 'pyaggr3g470r/crawler.py')
-rw-r--r-- | pyaggr3g470r/crawler.py | 6 |
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: |