mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
New recipe for Linux Devices by Oliver Neisner
This commit is contained in:
parent
635a77ffef
commit
dd97daee8e
BIN
src/calibre/gui2/images/news/linuxdevices.png
Normal file
BIN
src/calibre/gui2/images/news/linuxdevices.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 535 B |
@ -28,7 +28,7 @@ recipe_modules = ['recipe_' + r for r in (
|
|||||||
'la_tercera', 'el_mercurio_chile', 'la_cuarta', 'lanacion_chile', 'la_segunda',
|
'la_tercera', 'el_mercurio_chile', 'la_cuarta', 'lanacion_chile', 'la_segunda',
|
||||||
'jb_online', 'estadao', 'o_globo', 'vijesti', 'elmundo', 'the_oz',
|
'jb_online', 'estadao', 'o_globo', 'vijesti', 'elmundo', 'the_oz',
|
||||||
'honoluluadvertiser', 'starbulletin', 'exiled', 'indy_star', 'dna',
|
'honoluluadvertiser', 'starbulletin', 'exiled', 'indy_star', 'dna',
|
||||||
'pobjeda', 'chicago_breaking_news', 'glasgow_herald',
|
'pobjeda', 'chicago_breaking_news', 'glasgow_herald', 'linuxdevices',
|
||||||
)]
|
)]
|
||||||
|
|
||||||
import re, imp, inspect, time, os
|
import re, imp, inspect, time, os
|
||||||
|
80
src/calibre/web/feeds/recipes/recipe_linuxdevices.py
Normal file
80
src/calibre/web/feeds/recipes/recipe_linuxdevices.py
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
|
|
||||||
|
'''
|
||||||
|
Fetch Linuxdevices.
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
|
||||||
|
class Sueddeutsche(BasicNewsRecipe):
|
||||||
|
|
||||||
|
title = u'Linuxdevices'
|
||||||
|
description = 'News about Linux driven Hardware'
|
||||||
|
__author__ = 'Oliver Niesner'
|
||||||
|
use_embedded_content = False
|
||||||
|
timefmt = ' [%a, %d %b %Y]'
|
||||||
|
language = _('English')
|
||||||
|
max_articles_per_feed = 50
|
||||||
|
no_stylesheets = True
|
||||||
|
encoding = 'latin1'
|
||||||
|
|
||||||
|
remove_tags_after = [dict(id='nointelliTXT')]
|
||||||
|
filter_regexps = [r'ad\.doubleclick\.net']
|
||||||
|
|
||||||
|
|
||||||
|
remove_tags = [dict(name='div', attrs={'class':'bannerSuperBanner'}),
|
||||||
|
dict(name='div', attrs={'class':'bannerSky'}),
|
||||||
|
dict(name='div', attrs={'class':'footerLinks'}),
|
||||||
|
dict(name='div', attrs={'class':'seitenanfang'}),
|
||||||
|
dict(name='td', attrs={'class':'mar5'}),
|
||||||
|
dict(name='td', attrs={'class':'mar5'}),
|
||||||
|
dict(name='table', attrs={'class':'pageAktiv'}),
|
||||||
|
dict(name='table', attrs={'class':'xartable'}),
|
||||||
|
dict(name='table', attrs={'class':'wpnavi'}),
|
||||||
|
dict(name='table', attrs={'class':'bgcontent absatz'}),
|
||||||
|
dict(name='table', attrs={'class':'footer'}),
|
||||||
|
dict(name='table', attrs={'class':'artikelBox'}),
|
||||||
|
dict(name='table', attrs={'class':'kommentare'}),
|
||||||
|
dict(name='table', attrs={'class':'pageBoxBot'}),
|
||||||
|
#dict(name='table', attrs={'with':'100%'}),
|
||||||
|
dict(name='td', attrs={'nowrap':'nowrap'}),
|
||||||
|
dict(name='td', attrs={'valign':'middle'}),
|
||||||
|
dict(name='td', attrs={'align':'left'}),
|
||||||
|
dict(name='td', attrs={'align':'center'}),
|
||||||
|
dict(name='td', attrs={'height':'5'}),
|
||||||
|
dict(name='div', attrs={'class':'artikelBox navigatorBox'}),
|
||||||
|
dict(name='div', attrs={'class':'similar-article-box'}),
|
||||||
|
dict(name='div', attrs={'class':'videoBigHack'}),
|
||||||
|
dict(name='td', attrs={'class':'artikelDruckenRight'}),
|
||||||
|
dict(name='td', attrs={'class':'width="200"'}),
|
||||||
|
dict(name='a', attrs={'href':'/news'}),
|
||||||
|
dict(name='a', attrs={'href':'/'}),
|
||||||
|
dict(name='a', attrs={'href':'/articles'}),
|
||||||
|
dict(name='a', attrs={'href':'/cgi-bin/survey/survey.cgi'}),
|
||||||
|
dict(name='a', attrs={'href':'/cgi-bin/board/UltraBoard.pl'}),
|
||||||
|
dict(name='iframe'),
|
||||||
|
dict(name='form'),
|
||||||
|
#dict(name='tr', attrs={'td':'Click here to learn'}),
|
||||||
|
dict(name='span', attrs={'class':'hidePrint'}),
|
||||||
|
dict(id='headerLBox'),
|
||||||
|
dict(id='nointelliTXT'),
|
||||||
|
dict(id='rechteSpalte'),
|
||||||
|
dict(id='newsticker-list-small'),
|
||||||
|
dict(id='ntop5'),
|
||||||
|
dict(id='ntop5send'),
|
||||||
|
dict(id='ntop5commented'),
|
||||||
|
dict(id='nnav-bgheader'),
|
||||||
|
dict(id='nnav-headerteaser'),
|
||||||
|
dict(id='nnav-head'),
|
||||||
|
dict(id='nnav-top'),
|
||||||
|
dict(id='nnav-logodiv'),
|
||||||
|
dict(id='nnav-logo'),
|
||||||
|
dict(id='nnav-oly'),
|
||||||
|
dict(id='readcomment')]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
feeds = [ (u'Linuxdevices', u'http://www.linuxdevices.com/backend/headlines.rss') ]
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user