From c3c83eb14b56e8e81fd78f03986a65e013ac33c3 Mon Sep 17 00:00:00 2001 From: vvasuki Date: Mon, 4 Oct 2021 09:28:53 +0530 Subject: [PATCH] Add some indic feeds --- recipes/Hindu Human Rights.recipe | 19 +++++++++++++++++++ recipes/IndiaFacts.recipe | 19 +++++++++++++++++++ recipes/IndicToday.recipe | 19 +++++++++++++++++++ recipes/Pragyata.recipe | 19 +++++++++++++++++++ recipes/prekshaa.recipe | 19 +++++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 recipes/Hindu Human Rights.recipe create mode 100644 recipes/IndiaFacts.recipe create mode 100644 recipes/IndicToday.recipe create mode 100644 recipes/Pragyata.recipe create mode 100644 recipes/prekshaa.recipe diff --git a/recipes/Hindu Human Rights.recipe b/recipes/Hindu Human Rights.recipe new file mode 100644 index 0000000000..43505605c3 --- /dev/null +++ b/recipes/Hindu Human Rights.recipe @@ -0,0 +1,19 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +from calibre.web.feeds.news import BasicNewsRecipe + + +def classes(classes): + q = frozenset(classes.split(' ')) + return dict( + attrs={'class': lambda x: x and frozenset(x.split()).intersection(q)}) + +class HinduHumanRights(BasicNewsRecipe): + title = 'Hindu Human Rights' + oldest_article = 30 + max_articles_per_feed = 100 + auto_cleanup = True + + feeds = [ + ('HHR main', 'https://www.hindusforhumanrights.org/en/home-6?format=rss'), + ] \ No newline at end of file diff --git a/recipes/IndiaFacts.recipe b/recipes/IndiaFacts.recipe new file mode 100644 index 0000000000..e7c9f4df62 --- /dev/null +++ b/recipes/IndiaFacts.recipe @@ -0,0 +1,19 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +from calibre.web.feeds.news import BasicNewsRecipe + + +def classes(classes): + q = frozenset(classes.split(' ')) + return dict( + attrs={'class': lambda x: x and frozenset(x.split()).intersection(q)}) + +class IndiaFacts(BasicNewsRecipe): + title = 'IndiaFacts' + oldest_article = 7 + max_articles_per_feed = 100 + auto_cleanup = True + + feeds = [ + ('India Facts main feed', 'https://www.indiafacts.org.in/feed/'), + ] \ No newline at end of file diff --git a/recipes/IndicToday.recipe b/recipes/IndicToday.recipe new file mode 100644 index 0000000000..4d5d6af2a9 --- /dev/null +++ b/recipes/IndicToday.recipe @@ -0,0 +1,19 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +from calibre.web.feeds.news import BasicNewsRecipe + + +def classes(classes): + q = frozenset(classes.split(' ')) + return dict( + attrs={'class': lambda x: x and frozenset(x.split()).intersection(q)}) + +class IndicToday(BasicNewsRecipe): + title = 'Indic Today' + oldest_article = 7 + max_articles_per_feed = 100 + auto_cleanup = True + + feeds = [ + ('Indic Today Main feed', 'https://www.indica.today/feed/'), + ] \ No newline at end of file diff --git a/recipes/Pragyata.recipe b/recipes/Pragyata.recipe new file mode 100644 index 0000000000..49a61fd5fa --- /dev/null +++ b/recipes/Pragyata.recipe @@ -0,0 +1,19 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +from calibre.web.feeds.news import BasicNewsRecipe + + +def classes(classes): + q = frozenset(classes.split(' ')) + return dict( + attrs={'class': lambda x: x and frozenset(x.split()).intersection(q)}) + +class Pragyata(BasicNewsRecipe): + title = 'Pragyata' + oldest_article = 7 + max_articles_per_feed = 100 + auto_cleanup = True + + feeds = [ + ('pragyata', 'https://pragyata.com/feed/'), + ] \ No newline at end of file diff --git a/recipes/prekshaa.recipe b/recipes/prekshaa.recipe new file mode 100644 index 0000000000..2967dba975 --- /dev/null +++ b/recipes/prekshaa.recipe @@ -0,0 +1,19 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +from calibre.web.feeds.news import BasicNewsRecipe + + +def classes(classes): + q = frozenset(classes.split(' ')) + return dict( + attrs={'class': lambda x: x and frozenset(x.split()).intersection(q)}) + +class Prekshaa(BasicNewsRecipe): + title = 'prekshaa' + oldest_article = 7 + max_articles_per_feed = 100 + auto_cleanup = True + + feeds = [ + ('prekshaa', 'https://www.prekshaa.in/feed'), + ] \ No newline at end of file