mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class AdvancedUserRecipe1325006965(BasicNewsRecipe):
|
|
title = u'FHM UK'
|
|
description = 'Good News for Men.'
|
|
cover_url = 'http://www.greatmagazines.co.uk/covers/large/w197/current/fhm.jpg'
|
|
# cover_url = 'http://profile.ak.fbcdn.net/hprofile-ak-snc4/373529_38324934806_64930243_n.jpg'
|
|
masthead_url = 'http://www.fhm.com/App_Resources/Images/Site/re-design/logo.gif'
|
|
__author__ = 'Dave Asbury'
|
|
# last updated 7/10/12
|
|
language = 'en_GB'
|
|
oldest_article = 31
|
|
max_articles_per_feed = 15
|
|
remove_empty_feeds = True
|
|
no_stylesheets = True
|
|
|
|
keep_only_tags = [
|
|
dict(name='h1'),
|
|
dict(name='img', attrs={'id': 'ctl00_Body_imgMainImage'}),
|
|
dict(name='div', attrs={
|
|
'id': ['profileLeft', 'articleLeft', 'profileRight', 'profileBody']}),
|
|
dict(name='div', attrs={
|
|
'class': ['imagesCenterArticle', 'containerCenterArticle', 'articleBody', ]}),
|
|
|
|
]
|
|
|
|
remove_tags = [
|
|
dict(attrs={'id': ['ctl00_Body_divSlideShow']}),
|
|
|
|
]
|
|
feeds = [
|
|
# repeatable search = </div>{|}<a href="{%}"
|
|
# class="{*}">{%}</a>{|}<p>{*}</p>
|
|
(u'Homepage', u'http://rss.feedsportal.com/c/375/f/434908/index.rss'),
|
|
(u'Funny', u'http://rss.feedsportal.com/c/375/f/434910/index.rss'),
|
|
(u'Girls', u'http://rss.feedsportal.com/c/375/f/434913/index.rss'),
|
|
]
|
|
|
|
extra_css = '''
|
|
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
|
|
h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
|
|
p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
|
|
body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
|
|
'''
|