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