Quote:
Originally Posted by TonytheBookworm
Starson17, I thought I was getting the knack of this but apparently not. If it is an indent problem then hit me. I don't think it is though but I can't seem to understand why the print is not being appended to the url. I looked at the newyorker as an example and I to the most part use the same print_version()
my code
Spoiler:
Code:
class AdvancedUserRecipe1282101454(BasicNewsRecipe):
title = 'The TMZ'
__author__ = 'TonytheBookworm'
description = 'Celeb Gossip and News'
publisher = 'The TMZ'
category = 'news, celebrity, USA'
oldest_article = 1
max_articles_per_feed = 100
no_stylesheets = True
remove_javascript = True
extra_css = '''
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
'''
feeds = [
('TOP 20', 'http://www.tmz.com/rss.xml'),
('Exclusives', 'http://www.tmz.com/category/exclusives/rss.xml')
]
def print_version(self, url):
print_url = url +'print'
print 'print_url is: ', print_url
return print_url
I also am using the the test you gave me of
ebook-convert tmz.recipe output_dir --test -vv > myrecipe.txt
I don't really see any errors in there and I also don't see the print_url is: ... either
Sorry to bug you I will get it one of these days. 
|
I ran your code. It puts these in the output file:
Code:
print_url is: http://www.tmz.com/2010/08/18/tmz-seinfeld-uncle-leo-crank-call-police-burbank-kim-kardashian-facebook/print
print_url is: http://www.tmz.com/2010/08/25/mel-gibson-extortion-case-oksana-grigorieva-domestic-violence-sheriff-district-attorney-investigation/print
AFAICT, it's working perfectly. I even tested one of those links, and it works, too. What do you think is busted?