aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/crawler.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 08:29:44 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 08:29:44 +0200
commit90e34c4a745c3193247b9bc27779aad60b77d9ba (patch)
treedde46f893f9e3cdcfe25ce667adf0c005ee3edd4 /pyaggr3g470r/crawler.py
parentUpdated requirements.txt. (diff)
downloadnewspipe-90e34c4a745c3193247b9bc27779aad60b77d9ba.tar.gz
newspipe-90e34c4a745c3193247b9bc27779aad60b77d9ba.tar.bz2
newspipe-90e34c4a745c3193247b9bc27779aad60b77d9ba.zip
keep the original title.
Diffstat (limited to 'pyaggr3g470r/crawler.py')
-rw-r--r--pyaggr3g470r/crawler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py
index ec3dcef4..96b9a540 100644
--- a/pyaggr3g470r/crawler.py
+++ b/pyaggr3g470r/crawler.py
@@ -176,11 +176,10 @@ class FeedGetter(object):
description = ""
try:
description = BeautifulSoup(description, "lxml").decode()
- article_title = BeautifulSoup(article.title, "lxml").decode()
except Exception as e:
pyaggr3g470r_log.error("Problem when sanitizing the content of the article %s (%s)" %
(article_title, nice_url))
- article_title = article.title
+ article_title = article.title
try:
post_date = datetime(*article.published_parsed[:6])
bgstack15