| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
# https://manual.calibre-ebook.com/news_recipe.html |
| 4 |
from __future__ import absolute_import, division, print_function, unicode_literals |
| 5 |
|
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
''' |
| 9 |
Ingeniøren.dk |
| 10 |
''' |
| 11 |
|
| 12 |
|
| 13 |
class Ing_dk(BasicNewsRecipe): |
| 14 |
__author__ = 'CoderAllan.github.com' |
| 15 |
title = 'Ingeniøren' |
| 16 |
language = 'da' |
| 17 |
description = 'Nyheder om teknologi og naturvidenskab for fagfolk og interesserede; artikler, blogs, debat, infografik, video.' |
| 18 |
category = 'newspaper, news, localnews, sport, culture, Denmark' |
| 19 |
oldest_article = 7 |
| 20 |
max_articles_per_feed = 50 |
| 21 |
auto_cleanup = True |
| 22 |
|
| 23 |
keep_only_tags = [ |
| 24 |
dict(name='div', attrs={'class': 'menu-article-current-title'}), |
| 25 |
dict(name='section', attrs={'class': 'byline'}), |
| 26 |
dict(name='section', attrs={'class': 'body'}), |
| 27 |
] |
| 28 |
|
| 29 |
feeds = [ |
| 30 |
('Biotek', 'https://ing.dk/rss/term/341'), |
| 31 |
('Byggeri', 'https://ing.dk/rss/term/356'), |
| 32 |
('Elektronik', 'https://ing.dk/rss/term/355'), |
| 33 |
('Energi og Miljø', 'https://ing.dk/rss/term/354'), |
| 34 |
('Forskning', 'https://ing.dk/rss/term/353'), |
| 35 |
('Fødevare', 'https://ing.dk/rss/term/352'), |
| 36 |
('Karriere', 'https://ing.dk/rss/term/350'), |
| 37 |
('Produktion', 'https://ing.dk/rss/term/349'), |
| 38 |
('Rumfart', 'https://ing.dk/rss/term/348'), |
| 39 |
('Transport', 'https://ing.dk/rss/term/347'), |
| 40 |
('Blogs', 'https://ing.dk/rss/blogs'), |
| 41 |
('Spørg Scientariet', 'https://ing.dk/rss/term/287'), |
| 42 |
] |