mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
41 lines
1.5 KiB
Python
41 lines
1.5 KiB
Python
#!/usr/bin/env python2
|
|
# vim:fileencoding=utf-8
|
|
# https://manual.calibre-ebook.com/news_recipe.html
|
|
from __future__ import unicode_literals, division, absolute_import, print_function
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
'''
|
|
Ingeniøren.dk
|
|
'''
|
|
|
|
|
|
class Ing_dk(BasicNewsRecipe):
|
|
__author__ = 'CoderAllan.github.com'
|
|
title = 'Ingeniøren'
|
|
language = 'da'
|
|
description = 'Nyheder om teknologi og naturvidenskab for fagfolk og interesserede; artikler, blogs, debat, infografik, video.'
|
|
category = 'newspaper, news, localnews, sport, culture, Denmark'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 50
|
|
auto_cleanup = True
|
|
|
|
keep_only_tags = [
|
|
dict(name="div", attrs={'class': 'menu-article-current-title'}),
|
|
dict(name="section", attrs={'class': 'byline'}),
|
|
dict(name="section", attrs={'class': 'body'}),
|
|
]
|
|
|
|
feeds = [
|
|
('Biotek', 'https://ing.dk/rss/term/341'),
|
|
('Byggeri', 'https://ing.dk/rss/term/356'),
|
|
('Elektronik', 'https://ing.dk/rss/term/355'),
|
|
('Energi og Miljø', 'https://ing.dk/rss/term/354'),
|
|
('Forskning', 'https://ing.dk/rss/term/353'),
|
|
('Fødevare', 'https://ing.dk/rss/term/352'),
|
|
('Karriere', 'https://ing.dk/rss/term/350'),
|
|
('Produktion', 'https://ing.dk/rss/term/349'),
|
|
('Rumfart', 'https://ing.dk/rss/term/348'),
|
|
('Transport', 'https://ing.dk/rss/term/347'),
|
|
('Blogs', 'https://ing.dk/rss/blogs'),
|
|
('Spørg Scientariet', 'https://ing.dk/rss/term/287'),
|
|
]
|