![]() |
#2086 |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
|
![]() |
![]() |
#2087 |
Enthusiast
![]() Posts: 28
Karma: 14
Join Date: Jun 2010
Device: Kindle
|
|
![]() |
![]() |
#2088 |
Connoisseur
![]() Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
|
Revised Recipe
libero-news.it
Better viewing |
![]() |
![]() |
#2089 |
Connoisseur
![]() Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
|
Take a look at this feed:
http://www.auto.it/rss/prove+6.xml Every link in the feed is about the first "tablet" of the entire article; the others tablets are about others arguments regarding the same "car". The link for all tablets into the same article change only in one part, and always in the same way for every other article (about others cars). So an example: Code:
http://www.auto.it/prove/bmw/x6/2010/05-4850/scheda/BMW+X6+M.+Il+SUV+pi%C3%B9+veloce http://www.auto.it/prove/bmw/x6/2010...i%C3%B9+veloce http://www.auto.it/prove/bmw/x6/2010...i%C3%B9+veloce http://www.auto.it/prove/bmw/x6/2010...i%C3%B9+veloce http://www.auto.it/prove/bmw/x6/2010...i%C3%B9+veloce http://www.auto.it/prove/bmw/x6/2010...i%C3%B9+veloce http://www.auto.it/prove/bmw/x6/2010...i%C3%B9+veloce One option is to create an epub only for this feed, and use every link of the feed like a feed (a section title), and automatic create the details of the feed with all the links regarding tablet of the same article. Is it correct? Last edited by gambarini; 06-12-2010 at 11:49 AM. |
![]() |
![]() |
#2090 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2010
Device: none
|
|
![]() |
![]() |
#2091 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Quote:
Another way would be to try to just allow recursion to the deeper tab links on each page. You might have to modify the page to get access to the links. This would give you a single feed, with a link to each car, and your reader would then link from the first page to the next pages. A third way would be to use preprocess_html and the soup to grab the tab links and add them to each page - the way multipage is done. |
|||
![]() |
![]() |
#2092 |
Connoisseur
![]() Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
|
I have created the collection of articles, but i don't understand how merge this collection to the other parsed feed.
|
![]() |
![]() |
#2093 |
Zealot
![]() Posts: 137
Karma: 61
Join Date: Jun 2006
Location: Gijón, Spain
Device: Kindle 3G+WiFi & Galaxy Note
|
Hello,
I am trying to create a new recipe for Publico PT, because the bundled one does not work any more. I tried fixing it, but there was a regexp there that I do not understand. So I tried creating my own from scratch, and it mostly works, but I have a few problems. The main problem is that certain parts of the website work differently, for some reason. Now, my recipe is checking for certain tags to remove unnecessary items (menus, icons, etc), and not every section uses the same tags. For instance, "http://economia.publico.pt/Noticia/g...e-2013_1441633" has the main article inside a div id="content", but the article "http://desporto.publico.pt/noticia.aspx?id=1441651" has a the main article inside a div class="containerMain". As my recipe stands now, when it does not find the tag defined under "keep_only_tags", it just returns an empty page. Is there any way to say, "check for this tag and if it's not there, check for the other one instead"? I tried using the print_version method, but another problem is that not every article from the RSS feed has the same URI structure. As you can see in the example above, sometimes they use the full title for the URI and sometimes they use a number reference. Additionally, the print ("Imprimir" in Portuguese) mechanism for article URIs such as "http://desporto.publico.pt/noticia.aspx?id=1441651", fails miserably in the browser, while the one for "http://economia.publico.pt/Noticia/g...e-2013_1441633" just prints the current URI as it is displayed, without getting rid of unnecessary formatting. Please find attached a calibre log and the recipe as it currently stands. If an operator gives me permission, I can also upload the epub file with the daily news as retrieved with my recipe. I hope I can get some insight on this. ![]() |
![]() |
![]() |
#2094 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
AFAIK, you can't (at least not easily). You either build the entire set of feeds and associated articles, with parse_index (not merge) or you use the parsed feed/articles it builds, and modify the pages it fetches (by adding/allowing links or by using the multipage type method). Those are the three methods referred to above that I can think of.
Last edited by Starson17; 06-13-2010 at 09:03 AM. |
![]() |
![]() |
#2095 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Last edited by Starson17; 06-13-2010 at 09:05 AM. |
||
![]() |
![]() |
#2096 | |
Connoisseur
![]() Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
|
Quote:
I can print the article tuple in debug, and the feed that i have created seems correct, so these are my next steps: 1°) create the epub with only this feed 2°) create all other feeds (it could be only a simple "append" of the standard tag "title", "link", "description", "date" and so on), using the same "parse_index" used for the step one, for add (not merge ![]() It is also a good solution, i think, for my previous (and not yet solved) problem with the "la_stampa" recipe (There is two or three feeds without the title for every article). |
|
![]() |
![]() |
#2097 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
It's better than my Italian
![]() Quote:
|
|
![]() |
![]() |
#2098 |
Connoisseur
![]() Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
|
new recipes
Recipe for
corrieredellosport (sport daily newspaper) auto & autosprint (formula 1 and car news) |
![]() |
![]() |
#2099 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 196
Karma: 1003498
Join Date: Jun 2010
Device: none
|
I am using Calibre to fetch updates to the following blog: http://www.bodyrecomposition.com/feed/rss.
But the width of the resulting ebook is greater than my Sony 600 screen, so the right edge of the page is chopped off. Is there a way to modify the recipe to correct this? |
![]() |
![]() |
#2100 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,399
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use
conversion_options = {'linearize_tables':True} |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column read ? | pchrist7 | Calibre | 2 | 10-04-2010 02:52 AM |
Archive for custom screensavers | sleeplessdave | Amazon Kindle | 1 | 07-07-2010 12:33 PM |
How to back up preferences and custom recipes? | greenapple | Calibre | 3 | 03-29-2010 05:08 AM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |