Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2012, 10:56 AM   #1
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
FHM update

Homepage feed titles were linked to next article down....

Spoiler:
Code:
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 14/4/12
    language = 'en_GB'
    oldest_article = 28
    max_articles_per_feed = 12
    remove_empty_feeds = True
    no_stylesheets = True
    #auto_cleanup = True
    #articles_are_obfuscated = True
    keep_only_tags = [
	           dict(name='h1'),
	           dict(name='img',attrs={'id' : 'ctl00_Body_imgMainImage'}),
	           dict(name='div',attrs={'id' : ['articleLeft']}),
                               dict(name='div',attrs={'class' : ['imagesCenterArticle','containerCenterArticle','articleBody']}),
	                      
		] 

    #remove_tags    = [
                              #dict(attrs={'class' : ['player']}),

	#]
    feeds          = [
	(u'From the Homepage',u'http://feed43.com/0032328550253453.xml'),
                           #http://feed43.com/8053226782885416.xml'),
	(u'Funny - The Very Best Of The Internet',u'http://feed43.com/4538510106331565.xml'),
                           (u'Upgrade',u'http://feed43.com/0877305847443234.xml'),
	#(u'The Final Countdown', u'http://feed43.com/3576106158530118.xml'),
	#(u'Gaming',u'http://feed43.com/0755006465351035.xml'),
        	(u'Gaming',u'http://feed43.com/6537162612465672.xml'),
                           ]
scissors is offline   Reply With Quote
Old 07-01-2012, 05:48 PM   #2
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
fhm update 1 july 2012

fhm update 1st july 2012.

Spoiler:
Code:
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1325006965(BasicNewsRecipe):
    title          = u'FHM UK'
    description = 'Author D.Asbury. Using feed43 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 1/7/12
    language = 'en_GB'
    oldest_article = 28
    max_articles_per_feed = 8
    remove_empty_feeds = True
    no_stylesheets = True
    #auto_cleanup = True
   # articles_are_obfuscated = True
    keep_only_tags = [
               dict(name='h1'),
               dict(name='img',attrs={'id' : 'ctl00_Body_imgMainImage'}),
               dict(name='div',attrs={'id' : ['articleLeft']}),
                               dict(name='div',attrs={'class' : ['imagesCenterArticle','containerCenterArticle','articleBody']}),

        ]

    #remove_tags    = [
                              #dict(attrs={'class' : ['player']}),

    #]
    feeds          = [
    	(u'Homepage 1',u'http://feed43.com/6655867614547036.xml'),
    	(u'Homepage 2',u'http://feed43.com/4167731873103110.xml'),
    	(u'Homepage 3',u'http://feed43.com/7667138788771570.xml'),
    	(u'Homepage 4',u'http://feed43.com/6550421522527341.xml'),
    	(u'Funny - The Very Best Of The Internet',u'http://feed43.com/4538510106331565.xml'),
    	(u'Gaming',u'http://feed43.com/6537162612465672.xml'),
    	(u'Girls',u'http://feed43.com/3674777224513254.xml'),
                           ]

    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;}
		'''
scissors is offline   Reply With Quote
Advert
Old 08-04-2012, 08:00 AM   #3
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
update 4th aug 2012

Correction to subject/title misalignment

Spoiler:


Code:
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1325006965(BasicNewsRecipe):
    title          = u'FHM UK'
    description = 'Author D.Asbury. Using feed43 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 1/7/12
    language = 'en_GB'
    oldest_article = 28
    max_articles_per_feed = 8
    remove_empty_feeds = True
    no_stylesheets = True
    #auto_cleanup = True
   # articles_are_obfuscated = 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          = [
    	(u'Homepage 1',u'http://feed43.com/6655867614547036.xml'),
    	(u'Homepage 2',u'http://feed43.com/4167731873103110.xml'),
    	(u'Homepage 3',u'http://feed43.com/7667138788771570.xml'),
    	(u'Homepage 4',u'http://feed43.com/6550421522527341.xml'),
    	(u'Funny - The Very Best Of The Internet',u'http://feed43.com/4538510106331565.xml'),
    	(u'Gaming',u'http://feed43.com/6537162612465672.xml'),
    	(u'Girls',u'http://feed43.com/4574262733341068.xml'),# edit link http://feed43.com/feed.html?name=4574262733341068
                           ]

    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;}
		'''
scissors is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fhm update 17/3/12 scissors Recipes 0 03-17-2012 01:46 PM
FHM uk - updated scissors Recipes 0 01-27-2012 11:46 AM
new recipe FHM UK scissors Recipes 0 12-31-2011 11:48 AM
won't update...after completing the update cycle edge returns to the first screen WeAreBorrg enTourage Archive 2 03-18-2011 06:39 PM
How can I update creation time for a title when I update the book info or convert it setherd Calibre 3 10-30-2010 01:51 PM


All times are GMT -4. The time now is 05:30 AM.


MobileRead.com is a privately owned, operated and funded community.