| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 4 |
|
| 5 |
|
| 6 |
def classes(classes): |
| 7 |
q = frozenset(classes.split(' ')) |
| 8 |
return dict(attrs={'class': lambda x: x and frozenset(x.split()).intersection(q)}) |
| 9 |
|
| 10 |
|
| 11 |
class Prekshaa(BasicNewsRecipe): |
| 12 |
title = 'prekshaa' |
| 13 |
__author__ = 'Vishvas Vasuki' |
| 14 |
language = 'en_IN' |
| 15 |
oldest_article = 7 |
| 16 |
max_articles_per_feed = 100 |
| 17 |
auto_cleanup = True |
| 18 |
|
| 19 |
feeds = [ |
| 20 |
('prekshaa', 'https://www.prekshaa.in/feed'), |
| 21 |
] |