Hello all,
I am certainly enjoying the control that calibre gives me with sorting my books with my new Kobo and have decided to try the customization for newsites and the like. As you might guess, I do not understand Python.
I have started a recipe and so far have gotten:
class AdvancedUserRecipe1280684448(BasicNewsRecipe):
title = u'Twisting the Hellmouth'
oldest_article = 7
max_articles_per_feed = 100
feeds = [(u'Latest', u'http://www.tthfanfic.org/rss.php')]
by following the instructions. This is the RSS feed for the latest stories.
Here I have hit a snag, however. I get the first page of all the articles, but nothing beyond that. The suggestion is to use the print url command, which makes sense.
The articles do have a print address but it is quite different from the original story address.
Story address:
http://www.tthfanfic.org/Story-22821...ly+Literal.htm
Print address:
http://www.tthfanfic.org/wholestory....1&format=print
I can see that each article has a special ID identifyer, but I cannot figure out how to extract it and put it into the print url command. I can put the bit after the ID number, but don't know how to fix the front text or even get the ID number.
I have tried
def print_version(self, url):
return url + '&format=print'
without success. I have also tried
def print_version(self, url):
return 'http://www.tthfanfic.org/wholestory.php?no=' + artid + '&format=print'
also with out success.
I must be missing some vital step. Can someone here assist me?
Thank you.