View Single Post
Old 01-23-2010, 05:59 AM   #1238
exdream
Junior Member
exdream began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505
Quote:
Originally Posted by exdream View Post
I want to make a recipe for http://szmobil.sueddeutsche.de/ and started with this code:

from calibre.web.feeds.recipes import BasicNewsRecipe

class AdvancedUserRecipe1263738133(BasicNewsRecipe):
title = u'S\xfcddeutsche Zeitung'
oldest_article = 7
max_articles_per_feed = 100
description = 'Mobile Ausgabe'
language = 'de'

needs_subscription = True

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://szmobil.sueddeutsche.de/login.php')
br.select_form(nr=0)
br['username'] = self.username
br['password'] = self.password
br.submit()
return br

feeds = [
(u'Sueddeutsche Zeitung', u'http://szmobil.sueddeutsche.de/index.php')
]
and got the complete html-code of the website on the web-page I entered as feed.

Seems that I aditionally have to process the html-code somehow. But at the moment I don't have any idea which classes and methods I have to use for that. Please help!

Thanks,
Gero
Quote:
Originally Posted by evanmaastrigt View Post
Calibre has a built-in recipe for the Süddeutschen Zeitung. It seems to work pretty well. But if you want modifications/enhancements post your request in the sticky 'Custom Recipes' thread.
Many Thanks to evanmaastrigt for the answer to my first post. Sorry for posting in the wrong thread. I didn't realize immediately that this here is the right one.
The built in recipe for Sueddeutsche Zeitung works great, I know. The reason for this request is that the built in recipe is for the free contents of SZ and not for the ePaper (1:1 copy of the newspaper). Some parts of the newspaper are missing in the free parts, e.g. things called "Meinungsseite" or "Seite drei". These contents are my favorites in the paper edition.
exdream is offline