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-20-2011, 11:33 AM   #1
phiznlil
Member
phiznlil began at the beginning.
 
Posts: 16
Karma: 12
Join Date: Mar 2011
Device: kindle 3
New Recipe: TheJournal.ie

Code:
__license__   = 'GPL v3'
__copyright__ = '2011 Phil Burns'
'''
TheJournal.ie
'''
import re

from calibre.web.feeds.news import BasicNewsRecipe

class TheJournal(BasicNewsRecipe):

    __author_              = ' Phil Burns'
    title                  = u'TheJournal.ie'
    oldest_article         = 1
    max_articles_per_feed  = 100
    encoding               = 'utf8'
    language               = 'en_IE'
    timefmt                = ' (%A, %B %d, %Y)'

    no_stylesheets         = True
    remove_tags            = [dict(name='div', attrs={'class':'footer'}),
                           dict(name=['script', 'noscript'])]

    extra_css              = 'p, div { margin: 0pt; border: 0pt; text-indent: 0.5em }'

    feeds                  = [
                          (u'Latest News', u'http://www.thejournal.ie/feed/')]
phiznlil is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe works when mocked up as Python file, fails when converted to Recipe ode Recipes 7 09-04-2011 04:57 AM
New Recipe UtahJames Recipes 3 04-18-2011 08:02 PM
Recipe for ng.pl markoz Recipes 4 04-13-2011 05:03 PM
recipe please Torx Recipes 0 01-22-2011 12:18 PM
Recipe Help lrain5 Calibre 3 05-09-2010 10:42 PM


All times are GMT -4. The time now is 06:19 PM.


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