mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 10:05:38 +01:00
parent
200b62d25c
commit
9249e92c0a
2 changed files with 44 additions and 0 deletions
22
recipes/hindu_post.recipe
Normal file
22
recipes/hindu_post.recipe
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/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 HinduPost(BasicNewsRecipe):
|
||||
title = 'Hindu Post'
|
||||
__author__ = 'Vishvas Vasuki'
|
||||
language = 'en_IN'
|
||||
oldest_article = 3
|
||||
max_articles_per_feed = 100
|
||||
auto_cleanup = True
|
||||
|
||||
feeds = [
|
||||
('Main', 'https://hindupost.in/feed/'),
|
||||
]
|
||||
22
recipes/opindia.recipe
Normal file
22
recipes/opindia.recipe
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/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 Opindia(BasicNewsRecipe):
|
||||
title = 'opindia'
|
||||
__author__ = 'Vishvas Vasuki'
|
||||
language = 'en_IN'
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 100
|
||||
auto_cleanup = True
|
||||
|
||||
feeds = [
|
||||
('Opindia', 'https://feeds.feedburner.com/opindia'),
|
||||
]
|
||||
Loading…
Reference in a new issue