mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Anand Tech by Oliver Niesner
This commit is contained in:
parent
570eb48fb1
commit
a5e10f2fee
BIN
resources/images/news/anandtech.png
Normal file
BIN
resources/images/news/anandtech.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 664 B |
32
resources/recipes/anandtech.recipe
Normal file
32
resources/recipes/anandtech.recipe
Normal file
@ -0,0 +1,32 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
'''
|
||||
Fetch Anandtech.
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
class anan(BasicNewsRecipe):
|
||||
|
||||
title = 'Anandtech'
|
||||
description = 'comprehensive Hardware Tests'
|
||||
__author__ = 'Oliver Niesner'
|
||||
use_embedded_content = False
|
||||
language = 'en'
|
||||
timefmt = ' [%d %b %Y]'
|
||||
max_articles_per_feed = 40
|
||||
no_stylesheets = True
|
||||
remove_javascript = True
|
||||
encoding = 'utf-8'
|
||||
|
||||
remove_tags=[dict(name='a', attrs={'style':'width:110px; margin-top:0px;text-align:center;'}),
|
||||
dict(name='a', attrs={'style':'width:110px; margin-top:0px; margin-right:20px;text-align:center;'})]
|
||||
|
||||
feeds = [ ('Anandtech', 'http://www.anandtech.com/rss/')]
|
||||
|
||||
def print_version(self,url):
|
||||
return url.replace('/show/', '/print/')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user