aboutsummaryrefslogtreecommitdiffstats
path: root/news_feed.py
diff options
context:
space:
mode:
Diffstat (limited to 'news_feed.py')
-rw-r--r--news_feed.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/news_feed.py b/news_feed.py
index 2131676..7a57ac1 100644
--- a/news_feed.py
+++ b/news_feed.py
@@ -74,6 +74,7 @@ def get_news(news_url: str, version=None) -> list:
elif news_url == constants.POLARIS_CHORD_NEWS_SITE:
scraper = SiteScraper(headless=True)
site_data = scraper.get_page_source(news_url)
+ scraper.close()
news_posts = sorted(polaris_chord.parse_polaris_chord_news_site(site_data), key=lambda x: x['timestamp'], reverse=True)
news_posts = translate.add_translate_text_to_en(news_posts, iidx.KEY_TERMS_TL)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage