mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
26 lines
767 B
Python
26 lines
767 B
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class Arbetaren_SE(BasicNewsRecipe):
|
|
title = u'Arbetaren'
|
|
__author__ = 'Jonatan Nyberg'
|
|
description = u'Nyheter fr\xe5n Arbetaren'
|
|
publisher = 'Arbetaren'
|
|
category = 'news, politics, socialism, Sweden'
|
|
oldest_article = 7
|
|
delay = 1
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
encoding = 'utf-8'
|
|
language = 'sv'
|
|
auto_cleanup = True
|
|
auto_cleanup_keep = '//div[@class="thumbnail"]'
|
|
auto_cleanup_keep = '//div[@id="article-image"]'
|
|
auto_cleanup_keep = '//div[@id="article-image"]|//span[@class="important"]'
|
|
|
|
feeds = [(u'Nyheter', u'https://www.arbetaren.se/feed')]
|