From 842f3175df56e13a5379f4f0d83a4c3350408c65 Mon Sep 17 00:00:00 2001 From: Luciano Gervasoni Date: Wed, 9 Apr 2025 17:02:49 +0200 Subject: [PATCH] Feeds fetcher remove comments --- app_urls/init_db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app_urls/init_db.py b/app_urls/init_db.py index 9ddcb9a..33ddaeb 100644 --- a/app_urls/init_db.py +++ b/app_urls/init_db.py @@ -180,6 +180,9 @@ def find_feeds(url): except Exception as e: print(f"An error occurred: {e}") + # Remove comments feed + list_feeds = [f for f in list_feeds if "/comments" not in f] + # Remove duplicates return list(set(list_feeds))