Skip to content

Commit

Permalink
Don't encode rss_title
Browse files Browse the repository at this point in the history
  • Loading branch information
Medno committed Jul 9, 2024
1 parent d81505d commit 7404aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newsplease/helper_classes/parse_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def pass_to_pipeline(
article["html_title"] = extracted_title.encode("utf-8")

if rss_title is None:
article["rss_title"] = "NULL".encode("utf-8")
article["rss_title"] = "NULL"
else:
article["rss_title"] = rss_title.encode("utf-8")
article["rss_title"] = rss_title
article["spider_response"] = response
article["article_title"] = "NULL"
article["article_description"] = "NULL"
Expand Down

0 comments on commit 7404aa7

Please sign in to comment.