View Single Post
Old 11-16-2011, 03:50 PM   #6
MikeBlyth
Junior Member
MikeBlyth began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2011
Location: Jos, Nigeria
Device: Kindle
Although the print_version method works fine now, the result is still not the print version of the BBC story. Perhaps it's something funny about BBC. Using the command line
wget http://www.bbc.co.uk/news/world-midd...260?print=true
gives the right page, printable form. However, if I modify print_version to
Code:
def print_version(self, url):
    return 'http://www.bbc.co.uk/news/world-middle-east-15762260?print=true'
the non-print, full version is used in the resulting epub (I'm just hard-coding the whole URL as a way to debug; in practice, the expression would be "return url + u'?print=true' "). I know it seems unbelievable and possibly I'm still doing something wrong, but I'm only having the problem with BBC.
MikeBlyth is offline   Reply With Quote