View Single Post
Old 08-26-2010, 07:58 AM   #2526
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by TonytheBookworm View Post
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?

Last edited by Starson17; 08-26-2010 at 11:57 AM.
Starson17 is offline