Update irish_independent.recipe

removed duplicate feed and articles.
This commit is contained in:
unkn0w7n 2023-05-05 23:24:37 +05:30 committed by GitHub
parent dbc9e64fb3
commit 303a43fc9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ class IrishIndependent(BasicNewsRecipe):
oldest_article = 2 oldest_article = 2
max_articles_per_feed = 100 max_articles_per_feed = 100
no_stylesheets = True no_stylesheets = True
ignore_duplicate_articles = {'url'}
keep_only_tags = [ keep_only_tags = [
dict(name='div', attrs={'class':lambda x: x and '_contentwrapper' in x}) dict(name='div', attrs={'class':lambda x: x and '_contentwrapper' in x})
@ -26,7 +27,6 @@ class IrishIndependent(BasicNewsRecipe):
feeds = [ feeds = [
('Frontpage News', 'http://www.independent.ie/rss'), ('Frontpage News', 'http://www.independent.ie/rss'),
('News', 'http://www.independent.ie/rss'),
('World News', 'http://www.independent.ie/world-news/rss'), ('World News', 'http://www.independent.ie/world-news/rss'),
('Opinion', 'http://www.independent.ie/opinion/rss'), ('Opinion', 'http://www.independent.ie/opinion/rss'),
('Business', 'http://www.independent.ie/business/rss'), ('Business', 'http://www.independent.ie/business/rss'),