mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 00:13:45 +02:00
19 lines
No EOL
484 B
Python
19 lines
No EOL
484 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 Pragyata(BasicNewsRecipe):
|
|
title = 'Pragyata'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
auto_cleanup = True
|
|
|
|
feeds = [
|
|
('pragyata', 'https://pragyata.com/feed/'),
|
|
] |