Skip to content

Commit

Permalink
Various Danish news sources by Allan Simonsen
Browse files Browse the repository at this point in the history
Merge branch 'master' of https://github.com/CoderAllan/calibre
  • Loading branch information
kovidgoyal committed Oct 5, 2016
2 parents 5aea60f + 3254a32 commit d4bb800
Show file tree
Hide file tree
Showing 30 changed files with 575 additions and 11 deletions.
40 changes: 40 additions & 0 deletions recipes/borsen_dk.recipe
@@ -0,0 +1,40 @@
#!/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
'''
Børsen.dk
'''


class Borsen_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'Børsen.dk'
description = ('Meget mere end Danmarks førende erhvervsavis. Børsen sætter dagsordenen for erhvervslivet.'
' Vi skriver interessant og med kant. På alle platforme.')
category = 'newspaper, news, finance, politics, economy, sport, Denmark'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = False
language = 'da'

keep_only_tags = [
dict(name="h1", attrs={'itemprop': 'headline'}),
dict(name="div", attrs={'itemprob': 'datePublished'}),
dict(name="div", attrs={'itemprop': 'articleBody'}),
]

# Feed are found here:
# http://borsen.dk/kundeservice/smartphone_tablet_og_rss/rss-feeds.html
feeds = [
('Nyheder', 'http://borsen.dk/rss/'),
('Breaking news feed', 'http://borsen.dk/rss/breaking'),
('Penge', 'http://borsen.dk/rss/penge/'),
('Topnyheder', 'http://borsen.dk/rss/topnyheder/'),
('Privat økonomi', 'http://borsen.dk/rss/privatoekonomi/'),
('Økonomi', 'http://borsen.dk/rss/oekonomi/'),
('Politik', 'http://borsen.dk/rss/politik/'),
('Finans', 'http://finans.borsen.dk/rss/'),
('Sport', 'http://borsen.dk/rss/sport/'),
]
33 changes: 33 additions & 0 deletions recipes/bt_dk.recipe
@@ -0,0 +1,33 @@
#!/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
'''
BT Nyheder
'''


class Bt_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'BT Nyheder'
category = 'newspaper, news, localnews, sport, politics, health, entertainment, music, crime, cars, Denmark'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = True
language = 'da'

# Feed are found here: http://www.bt.dk/rss-feeds
feeds = [
('Top nyheder', 'http://www.bt.dk/bt/top/rss'),
('Seneste nyheder', 'http://www.bt.dk/nyheder/seneste/rss'),
('Underholdning', 'http://www.bt.dk/underholdning/seneste/rss'),
('Forbrug', 'http://www.bt.dk/forbrug/seneste/rss'),
('Sundhed', 'http://www.bt.dk/sundhed/seneste/rss'),
('Krimi', 'http://www.bt.dk/krimi/seneste/rss'),
('Politik', 'http://www.bt.dk/politik/seneste/rss'),
('Misik', 'http://www.bt.dk/musik/seneste/rss'),
('Utroligt', 'http://www.bt.dk/utroligt/seneste/rss'),
('Biler', 'http://www.bt.dk/biler/seneste/rss'),
('Digital', 'http://www.bt.dk/digital/seneste/rss'),
]
34 changes: 34 additions & 0 deletions recipes/dagensmedicin_dk.recipe
@@ -0,0 +1,34 @@
#!/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
'''
Dagens Medicin
'''


class Dagensmedicin_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'Dagens Medicin'
description = 'Uafhængig nyhedsavis om sundhedssektoren'
category = 'news, medicin, healthcare, Denmark'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = True
language = 'da'

# Feed are found here: http://dagensmedicin.dk/feeds
feeds = [
('Dagens Medicin', 'http://dagensmedicin.dk/feed/'),
('Leder', 'http://dagensmedicin.dk/sektion/opinion/leder/rss'),
('Kommentarer til Dagens Medicin', 'http://dagensmedicin.dk/comments/feed/'),
('Almen Praksis ', 'http://dagensmedicin.dk/sektion/almen-praksis/rss'),
('Cancer', 'http://dagensmedicin.dk/sektion/cancer/rss'),
('Hjerte-kar', 'http://dagensmedicin.dk/sektion/hjerte-kar/rss'),
('Psykiatri', 'http://dagensmedicin.dk/sektion/psykiatri/rss'),
('Diabetes', 'http://dagensmedicin.dk/sektion/diabetes/rss'),
('Debat', 'http://dagensmedicin.dk/sektion/opinion/debat/rss'),
('Blogs', 'http://dagensmedicin.dk/sektion/opinion/blogs/rss'),
('Stikpillen', 'http://dagensmedicin.dk/sektion/opinion/stikpillen/rss'),
]
27 changes: 27 additions & 0 deletions recipes/dagenspharma_dk.recipe
@@ -0,0 +1,27 @@
#!/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
'''
Dagens Pharma
'''


class Dagenspharma_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'Dagens Pharma'
description = 'Først med professionelles nyheder om medicin'
category = 'medicin, healthcare, Denmark'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = True
language = 'da'

# Feed are found here: http://dagenspharma.dk/feeds/
feeds = [
('Dagens Pharma', 'http://dagenspharma.dk/feed/'),
('Kommentarer til Dagens Pharma', 'http://dagenspharma.dk/comments/feed/'),
('Regulering – Dagens Pharma', 'http://dagenspharma.dk/sektion/regulering/rss'),
('Tilskud – Dagens Pharma', 'http://dagenspharma.dk/sektion/tilskud/rss'),
]
37 changes: 26 additions & 11 deletions recipes/dr_dk.recipe
Expand Up @@ -6,22 +6,36 @@ from calibre.web.feeds.news import BasicNewsRecipe
__license__ = 'GPL v3'
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
'''
dr.dk
DR.dk
'''

class DRNyheder(BasicNewsRecipe):
title = 'DR Nyheder'
__author__ = 'Darko Miletic'
publisher = 'DR Nyheder'
category = 'news, politics, money, culture, sport, science, Denmark'
oldest_article = 2
title = 'DR Nyheder'
__author__ = 'Darko Miletic'
publisher = 'DR Nyheder'
description = 'Her finder du nyheder fra DR og alle vores TV og Radio kanaler live og on demand - når du har lyst.'
category = 'news, politics, money, culture, sport, science, Denmark'
oldest_article = 2
max_articles_per_feed = 50
no_stylesheets = True
encoding = 'utf8'
use_embedded_content = False
language = 'da'
no_stylesheets = True
encoding = 'utf8'
use_embedded_content = False
language = 'da'
auto_cleanup = False

# All feeds are found here: http://www.dr.dk/nyheder/dr-nyheder-som-rss-feed
keep_only_tags = [
dict(name="h1", attrs={'id': 'access-content'}),
dict(name="p", attrs={'class': 'summary'}),
dict(name="span", attrs={'itemprop': 'datePublished'}),
dict(name="div", attrs={'class': 'wcms-article-content'}),
]

remove_tags = [
dict(name='menu', attrs={'class': 'share'}),
dict(name='menu', attrs={'class': 'dr-site-share-horizontal'}),
]

# Feed are found here: http://www.dr.dk/nyheder/dr-nyheder-som-rss-feed
feeds = [
('Indland', 'http://www.dr.dk/nyheder/service/feeds/indland'),
('Udland', 'http://www.dr.dk/nyheder/service/feeds/udland'),
Expand All @@ -40,3 +54,4 @@ class DRNyheder(BasicNewsRecipe):
('DR Sjælland', 'http://www.dr.dk/Nyheder/Service/feeds/regionale/sjaelland/'),
('DR Østjylland', 'http://www.dr.dk/Nyheder/Service/feeds/regionale/oestjylland/'),
]

25 changes: 25 additions & 0 deletions recipes/hornsherredavis_dk.recipe
@@ -0,0 +1,25 @@
#!/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
'''
Hornsherred Avis
'''


class Hornsherredavis_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'Hornsherred Avis'
description = 'Lokale nyheder fra Jægerspis, Skibby og Bramsnæs'
category = 'newspaper, news, localnews, sport, culture, Denmark'
oldest_article = 30
max_articles_per_feed = 50
auto_cleanup = True
language = 'da'

# Feed are found here: http://hornsherredavis.dk/
feeds = [
('Hornsherred Avis', 'http://hornsherredavis.dk/?feed=rss2'),
('Kommentarer til Hornsherred Avis', 'http://hornsherredavis.dk/?feed=comments-rss2'),
]
Binary file added recipes/icons/borsen_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/bt_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/maskinbladet_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/politiko_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/queueacmorg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/sondagsavisen_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/tv2lorry_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/tv2nord_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/tv2oj_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/tveast_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/tvmidtvest_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/icons/tvsyd_dk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions recipes/kommunalsundhed_dk.recipe
@@ -0,0 +1,25 @@
#!/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
'''
Kommunal Sundhed
'''


class Kommunalsundhed_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'Kommunal Sundhed'
description = 'Nyheder til kommunale ledere, der arbejder med sundhed og sygdom'
category = 'medicin, healthcare, Denmark'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = True
language = 'da'

# Feed are found here: http://kommunalsundhed.dk/
feeds = [
('Kommunal Sundhed', 'http://kommunalsundhed.dk/feed/'),
('Kommentarer', 'http://kommunalsundhed.dk/comments/feed/'),
]
25 changes: 25 additions & 0 deletions recipes/maskinbladet_dk.recipe
@@ -0,0 +1,25 @@
#!/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
'''
Maskinbladet.dk
'''


class Maskinbladet_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'Maskinbladet'
description = ('Landbrugets største, uafhængige nyhedskilde med adgang '
'til nye og brugte landbrugs- og entreprenørmaskiner')
category = 'news, localnews, farming, Denmark'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = True
language = 'da'

# Feed are found here: http://www.maskinbladet.dk/
feeds = [
('Maskinbladet', 'http://www.maskinbladet.dk/rss'),
]
38 changes: 38 additions & 0 deletions recipes/newz_dk.recipe
@@ -0,0 +1,38 @@
#!/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
'''
newz.dk
'''


class Newz_dk(BasicNewsRecipe):
__author__ = 'CoderAllan.github.com'
title = 'newz.dk'
description = 'Nyheder for rigtige nørder'
category = 'newspaper, news, localnews, sport, culture, Denmark'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = True
language = 'da'

# Feed are found here: https://newz.dk/feeds
feeds = [
('Newz', 'https://newz.dk/rss'),
('Forums', 'https://newz.dk/forum/rss'),
('Artikler', 'https://newz.dk/forum/artikler/rss'),
('Afstemninger', 'https://newz.dk/forum/afstemninger/rss'),
('Tagwall', 'https://newz.dk/forum/tagwall/rss'),
('Hardware', 'https://newz.dk/forum/hardware/rss'),
('Software', 'https://newz.dk/forum/software/rss'),
('Programmering', 'https://newz.dk/forum/programmering/rss'),
('Support', 'https://newz.dk/forum/support/rss'),
('Køb / Salg', 'https://newz.dk/forum/koeb-salg/rss'),
('Jobs', 'https://newz.dk/forum/jobs/rss'),
('Demo /LAN-parties', 'https://newz.dk/forum/demo-lan-parties/rss'),
('Folding@Home', 'https://newz.dk/forum/folding-home/rss'),
('Gallerier', 'https://newz.dk/forum/gallerier/rss'),
('news.dk', 'https://newz.dk/forum/newz-dk/rss'),
]
40 changes: 40 additions & 0 deletions recipes/politiko_dk.recipe
@@ -0,0 +1,40 @@
#!/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
'''
Politiko.dk
'''


class PolitikoDK(BasicNewsRecipe):
title = 'Politiko | Berlingskes politiske site'
__author__ = 'CoderAllan.github.com'
publisher = 'Berlingske Media'
description = ('Læs de seneste nyheder om dansk politik. På Politiko får du alt om'
' politik samlet et sted - Politiko.dk')
category = 'news, politics, money, Denmark'
oldest_article = 2
max_articles_per_feed = 50
no_stylesheets = True
encoding = 'utf8'
use_embedded_content = False
language = 'da'
auto_cleanup = False

keep_only_tags = [
dict(name="h1", attrs={'class': 'article-headline'}),
dict(name="p", attrs={'class': 'article-summary'}),
dict(name="div", attrs={'class': 'article-date'}),
dict(name="div", attrs={'class': 'article-content'}),
]

# Feed are found here: http://www.b.dk/rss
feeds = [
('Nyheder', 'http://www.politiko.dk/feeds/rss/nyheder'),
('Politisk Morgenpost', 'http://www.politiko.dk/taxonomy_rss/329960/rss'),
('Den Politiske Puls', 'http://puls.politiko.dk/feed/'),
('Analyse og perspektiv', 'http://www.politiko.dk/feeds/rss/analyser'),
('Longreads', 'http://www.politiko.dk/feeds/rss/longreads'),
]

0 comments on commit d4bb800

Please sign in to comment.