mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
23 lines
579 B
Python
23 lines
579 B
Python
#!/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'
|
|
__author__ = 'Vishvas Vasuki'
|
|
language = 'en_IN'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
auto_cleanup = True
|
|
|
|
feeds = [
|
|
('India Facts main feed', 'https://www.indiafacts.org.in/feed/'),
|
|
]
|