09-18-2010, 10:18 PM | #2761 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
What I done was split the returned url and then appended it it sort of like you were doing. I put some print statements in there so you can see what is actually being used as the final print_url when you run ebook-convert yourecipenamehere.recipe output_dir --test -vv >myrecipe.txt when you run that you can see the print statements in the myrecipe.txt use this for your print_url code Spoiler:
|
|
09-18-2010, 10:31 PM | #2762 | |
Enthusiast
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
Quote:
|
|
Advert | |
|
09-18-2010, 10:33 PM | #2763 |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
|
09-18-2010, 11:14 PM | #2764 |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Working Copy of Popular Science
Finally got Popular Science to work like I want. It goes 7 days back and also I have it remove any found Gallery: 's for image slide shows and so forth.
|
09-19-2010, 06:26 AM | #2765 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: Nook
|
Can i request a recipe or even add the site into release please?
The site is http://slo-tech.com/ and is the best Slovenian tech news site. Pleeeeease |
Advert | |
|
09-19-2010, 08:08 AM | #2766 |
Zealot
Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
|
i ran it a few times and all the articles seem to be downloading with ebook convert, but when i try it in calibre, i get some empty articles. what to do?
also, i just saw that a small number of articles have a different format. both the web address (is "it.themarker.com" and not "themarker.com"), the way to get the print version, and the page format are different. is there any way to do an "if" or something like that? to deal with 2 different articles in different ways? thanks again tony. you are a life saver. Last edited by marbs; 09-19-2010 at 09:44 AM. |
09-19-2010, 03:58 PM | #2767 |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
bad post... code totally wrong..
Last edited by TonytheBookworm; 09-19-2010 at 05:09 PM. Reason: sorry about that. |
09-19-2010, 04:18 PM | #2768 |
Zealot
Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
|
i need to go over your code slowly. i am not sure i understand it at all. can i use it as is? i would love an explanation when you have the time.
BTW, the IT address is "http://it.themarker.com/tmit/article/XXXXX" and the print version is "http://it.themarker.com/tmit/PrintArticle/XXXXX" how would you do the clean up for the different pages (or should i just leave it?) thanks again for all your help. i really do appreciate it. Last edited by marbs; 09-19-2010 at 04:20 PM. |
09-19-2010, 04:32 PM | #2769 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
this might do the trick. (i can't seem to get it to find it.themarket link) so your gonna have to be my eyes in the field on this one. Cause what happens is this. for instance you have cars.themarket.com when it goes to that link it converts it to themarket in the cases i have seen. if you know a specific url that i can test please let me know. because as i'm seeing things like law.themarket and cars.themarket and careers the market all revert to www.themarket.com/xxxxxxxxx and on on here is what I have come up with thus far. sorry about the previous code. Spoiler:
Last edited by TonytheBookworm; 09-19-2010 at 07:07 PM. Reason: modified code to find it.themarker.com error was in regex |
|
09-19-2010, 05:17 PM | #2770 |
Zealot
Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
|
gmail news
i was reading stuff online.
look what i found: http://lifehacker.com/157701/get-rss...r-gmail-labels it is way way WAY out of my capabilities. could anyone create a news feed for gmail? one that requires a username and password? the feed address is https://mail.google.com/mail/feed/atom/label/ |
09-19-2010, 06:34 PM | #2771 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
here is the code Spoiler:
Last edited by TonytheBookworm; 09-19-2010 at 06:50 PM. |
|
09-19-2010, 06:36 PM | #2772 |
Junior Member
Posts: 1
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
|
Tagesanzeiger
I updated the Feed for Tagesanzeiger (Swiss Newspaper)
Code:
class AdvancedUserRecipe1284927619(BasicNewsRecipe): title = u'Tagesanzeiger' publisher = u'Tamedia AG' oldest_article = 2 max_articles_per_feed = 100 description = 'tagesanzeiger.ch: Nichts verpassen' category = 'News, Politik, Nachrichten, Schweiz, Zürich' language = 'de' conversion_options = { 'comments' : description ,'tags' : category ,'language' : language ,'publisher' : publisher } remove_tags = [ dict(name='img') ,dict(name='div',attrs={'class':['swissquote ad','boxNews','centerAD','contentTabs2','sbsLabel']}) ,dict(name='div',attrs={'id':['colRightAd','singleRight','singleSmallRight','MailInfo','metaLine','sidebarSky','contentFooter','commentInfo','commentInfo2','commentInfo3','footerBottom','clear','boxExclusiv','singleLogo','navSearch','headerLogin','headerBottomRight','horizontalNavigation','subnavigation','googleAdSense','footerAd','contentbox','articleGalleryNav']}) ,dict(name='form',attrs={'id':['articleMailForm','commentform']}) ,dict(name='div',attrs={'style':['position:absolute']}) ,dict(name='script',attrs={'type':['text/javascript']}) ,dict(name='p',attrs={'class':['schreiben','smallPrint','charCounter','caption']}) ] feeds = [ (u'Front', u'http://www.tagesanzeiger.ch/rss.html') ,(u'Zürich', u'http://www.tagesanzeiger.ch/zuerich/rss.html') ,(u'Schweiz', u'http://www.tagesanzeiger.ch/schweiz/rss.html') ,(u'Ausland', u'http://www.tagesanzeiger.ch/ausland/rss.html') ,(u'Digital', u'http://www.tagesanzeiger.ch/digital/rss.html') ,(u'Wissen', u'http://www.tagesanzeiger.ch/wissen/rss.html') ,(u'Panorama', u'http://www.tagesanzeiger.ch/panorama/rss.html') ,(u'Wirtschaft', u'http://www.tagesanzeiger.ch/wirtschaft/rss.html') ,(u'Sport', u'http://www.tagesanzeiger.ch/sport/rss.html') ,(u'Kultur', u'http://www.tagesanzeiger.ch/kultur/rss.html') ,(u'Leben', u'http://www.tagesanzeiger.ch/leben/rss.html') ,(u'Auto', u'http://www.tagesanzeiger.ch/auto/rss.html')] def print_version(self, url): return url + '/print.html' Cheers noxxx |
09-19-2010, 10:51 PM | #2773 |
Enthusiast
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
Can you help me with the recipe of business standard the website has been updated
I want help in the print section of the recipe if the article url is http://www.business-standard.com/ind...ky-way/406220/ and print url is http://www.business-standard.com/ind...ono=406220&tp= then how will we define the print section |
09-19-2010, 11:34 PM | #2774 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
Spoiler:
Last edited by TonytheBookworm; 09-20-2010 at 02:24 AM. Reason: typo |
|
09-20-2010, 08:27 AM | #2775 |
Evangelist
Posts: 404
Karma: 664
Join Date: Dec 2009
Device: Kindle Paperwhite, Kindle DX, Kobo Aura HD
|
Hi, I'd like to request for reddit.com feed recipe.
Doesn't seem to download when I use a basic configuration. Thanks! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column read ? | pchrist7 | Calibre | 2 | 10-04-2010 03:52 AM |
Archive for custom screensavers | sleeplessdave | Amazon Kindle | 1 | 07-07-2010 01:33 PM |
How to back up preferences and custom recipes? | greenapple | Calibre | 3 | 03-29-2010 06:08 AM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 05:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 03:37 PM |