Feeds fetcher remove comments
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user