Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2013, 05:49 AM   #1
zitronenrollchen
Junior Member
zitronenrollchen began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2013
Device: Kindle NT
VICE Magazin Deutschland

I shamelessly took the recipe for the Spanish website of vice.com and modified it for the German website. All credits go to the original author:

Code:
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
import re
from calibre.web.feeds.news import BasicNewsRecipe

class ViceDERecipe(BasicNewsRecipe):
    title = u'Vice Magazin Deutschland'
    __author__ = 'atordo;alex'
    description = u'Die offizielle Website des Vice Magazins Deutschland'
    category = u'Nachrichten, Fotografie, Blogs, Mode, Kunst, Film, Musik, Literatur, Technik'
    cover_url = 'http://www.seeklogo.com/images/V/Vice-logo-668578AC94-seeklogo.com.gif'
    oldest_article = 14
    max_articles_per_feed = 100
    auto_cleanup = False
    no_stylesheets = True
    language = 'de'
    use_embedded_content  = False
    remove_javascript = True
    publication_type = 'magazine'

    recursions=10
    match_regexps = [r'/read/.*\?Contentpage=[2-9]$']

    keep_only_tags = [
        dict(attrs={'class':['article_title','article_content','next']})
    ]
    remove_tags = [
        dict(attrs={'class':['social_buttons','search','tweet','like','inline_socials'
           ,'stumblebadge','plusone']})
    ]

    extra_css = '''
        .author{font-size:small}
        img{margin-bottom: 0.4em; display:block; margin-left:auto; margin-right: auto}
    '''

    preprocess_regexps = [
        (re.compile(r'<img src="http://.*\.scorecardresearch\.com/'), lambda m: '')
    ]

    feeds = [('Vice', 'http://www.vice.com/de/rss')]
Hope this is of any use. (First post, sorry if anything's not correct).
zitronenrollchen is offline   Reply With Quote
Old 02-07-2013, 06:54 AM   #2
atordo
Connoisseur
atordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to behold
 
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
No problem, to quote myself:
Quote:
Originally Posted by atordo
So blatantly plagiarizing Danas recipe by Darko Miletic (I must thank Darko and other recipe authors, because I do this all the time)...
So welcome to the club
atordo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vice Magazine Spain atordo Recipes 2 06-07-2012 12:27 PM
How to create recipe for http://www.pm-magazin.de/ xXxXxXxXxXx Recipes 3 05-17-2011 09:57 AM
Multipage questions (Sueddeutsche Magazin) aerodynamik Recipes 11 04-26-2011 03:50 PM
Good e-Reader Magazin Marc_liest Deutsches Forum 0 10-04-2010 04:08 AM
BeBook Zusammenfassung zum BeBook im c't Magazin No.9 '09 beachwanderer Andere Lesegeräte 0 04-14-2009 04:22 AM


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


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