Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2010, 08:36 AM   #1
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
How to prevent recipe read "files" pdf on web rss?

Hi, i have some Rss news about important documents, but only need to know the title and date of publication, the problem is that IN Calibre go and read pdf files That was how a web page ...

Code:
%PDF-1.4 %âãÏÓ 2 0 obj endobj 1 0 obj/M(D:20101102110028+01'00')/Name(Firma de prueba)/SubFilter/adbe.pkcs7.detached/ByteRange [0 155 9629 121469 ] /FT/Sig>> endobj 3 0 obj endobj 4 0 obj stream hÞì{ÛŽ%ÉmíûþŠý8# Sq¿

×ë—_üJÞýåÕ]ÿtõuÌ®]ÿvõîúÏ×ûw¹ùŸ—þüËâüõ�×Ë_ä“NþùëØk(ýšÝzº>¼åí·—Üã£\>^¾¼üfÔåC¥ò±]æ8¦.üè»Í¦`67éÃ?û£Íä/—Ñù,ÿ¯-…kîyñ:´äÇÖ¯ýÝå7×?_„°(SH2ƒ5¹©¡+÷Ñû ¹iŒôÓå \p=c¸/ç×ñ;¿ôN&vgj;!×1…pMU(«˜œ¿z[¦Ïþã¿Æ‡ßþù~ûýãoÇ߽ä†�ÆžS¼ŽÎ…t}ó“Ëgÿçÿÿ×x�¥öø䬽“OùyÖÖ£Æ4æ>uZúü^(~É8¹à~ªE'îËX|¹òbíµ_kÈc”µ{�UûÅ[ýÉO¼øáϼÊmK(Æ\ Ëc–4'ËîåWÆsÎCl?ûù¯ü‹Ÿþë¯~�¹Ê*ÈêUp�2ýÙþ·ßü`õ¿}öÅ�~õæóÚÇöÙ�~ü¯¿øÑçÿþæ—”òŸ™&%ú™é�wcÓ‰„kha\e£w©õhL©wýÆ�ýO?}óÿ~õùP!1Ÿýúg¿øâ?ú'4›4òùØ?


onle need "Index"!, not open pdf..

(Obviously if the following versions of Calibre, it is able to read pdf, "the better", but ... meanwhile ... ;-)

Regards from Spain.
KRorschachZ is offline   Reply With Quote
Old 11-06-2010, 01:53 PM   #2
marbs
Zealot
marbs began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
post all of your code.
marbs is offline   Reply With Quote
Old 11-06-2010, 02:41 PM   #3
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 marbs View Post
post all of your code.
If he's saying he wants the RSS feed summary, but not a pdf it's linked to, he can tell Calibre to pull only the summaries. A bit more info on what he's trying to do will help.
Starson17 is offline   Reply With Quote
Old 11-08-2010, 03:00 PM   #4
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
Quote:
Originally Posted by Starson17 View Post
If he's saying he wants the RSS feed summary, but not a pdf it's linked to, he can tell Calibre to pull only the summaries. A bit more info on what he's trying to do will help.
yes, I go to do that info. see the other aswerd...

Quote:
http://www.gobcantabria.es/rss/fichero94.xml

http://www.gobcantabria.es/rss/fichero93.xml

not indicated that because as I was in another language

I just needed "RSS sumary" and if possible "date, year, month, day, leaving only a code,

but did not want to read a pdf, "unless you can translate" the first paragraph to mobi format, I guess that would be necessary to deploy software Calibre.

but "perhaps avoid, read the pdf you can get"?

recipe basic:

Spoiler:
Quote:
class AdvancedUserRecipe1289246400(BasicNewsRecipe):
title = u'RSS sumary not access file pdf link'
oldest_article = 7
max_articles_per_feed = 100

feeds = [(u'Start page info', u'http://www.gobcantabria.es/rss/fichero93.xml'), (u'Info news only dates and first text', u'http://www.gobcantabria.es/rss/fichero94.xml')]


Bye, and thanks for read...
KRorschachZ is offline   Reply With Quote
Old 11-08-2010, 03:02 PM   #5
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
Quote:
Originally Posted by marbs View Post
post all of your code.
Hi, I not insert, because rss are on other text language....


Quote:
Originally Posted by Starson17 View Post
If he's saying he wants the RSS feed summary, but not a pdf it's linked to, he can tell Calibre to pull only the summaries. A bit more info on what he's trying to do will help.
yes, I go to do that info. see the other aswerd...

http://www.gobcantabria.es/rss/fichero94.xml

http://www.gobcantabria.es/rss/fichero93.xml

not indicated that because as I was in another language

I just needed "RSS sumary" and if possible "date, year, month, day, leaving only a code,

but did not want to read a pdf, "unless you can translate" the first paragraph to mobi format, I guess that would be necessary to deploy software Calibre.

but "perhaps avoid, read the pdf you can get"?

recipe basic:

Spoiler:
Quote:
class AdvancedUserRecipe1289246400(BasicNewsRecipe):
title = u'RSS sumary not access file pdf link'
oldest_article = 7
max_articles_per_feed = 100

feeds = [(u'Start page info', u'http://www.gobcantabria.es/rss/fichero93.xml'), (u'Info news only dates and first text', u'http://www.gobcantabria.es/rss/fichero94.xml')]


Bye, and thanks for read...
KRorschachZ is offline   Reply With Quote
Old 11-08-2010, 03:28 PM   #6
marbs
Zealot
marbs began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
still dont understand what you want exactly, but try this:

Code:
class AdvancedUserRecipe1289246400(BasicNewsRecipe):
   title = u'RSS sumary not access file pdf link'
   oldest_article = 7
   max_articles_per_feed = 100

   feeds = [(u'Start page info', u'http://www.gobcantabria.es/rss/fichero93.xml'), (u'Info news only dates and first text', u'http://www.gobcantabria.es/rss/fichero94.xml')] 
   def print_version(self, url):
      url='http://www.mocv.mv.com/webend.html'
      return url
marbs is offline   Reply With Quote
Old 11-08-2010, 04:30 PM   #7
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
I'm also not quite sure what he wants, but this will ignore an RSS feed link and get only the RSS feed summary.
Code:
    use_embedded_content  = True
Starson17 is offline   Reply With Quote
Old 11-08-2010, 06:54 PM   #8
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
Quote:
Originally Posted by marbs View Post
still dont understand what you want exactly, but try this:

Code:
class AdvancedUserRecipe1289246400(BasicNewsRecipe):
   title = u'RSS sumary not access file pdf link'
   oldest_article = 7
   max_articles_per_feed = 100

   feeds = [(u'Start page info', u'http://www.gobcantabria.es/rss/fichero93.xml'), (u'Info news only dates and first text', u'http://www.gobcantabria.es/rss/fichero94.xml')] 
   def print_version(self, url):
      url='http://www.mocv.mv.com/webend.html'
      return url
Excuse me, but I don´t execute that code recipe, because google search say that link is rare: http://webcache.googleusercontent.co...t=clnk&prmdo=1 ; I try only cache google image, not go to that web/or server...

Do not bother because I do not trust your code, it's nothing personal, but I never know where we will find some bad bug ... of some, or other type ... I have nothing to run custom programs lightly, just because someone typed in any forum, to do that I have to understand the code.

"Do not give fish to the hungry, teach him to fish"

I will Try searching the manual calibre...

Thank you for taking the great trouble to respond, I'll give you all the karma points you can, so you can buy something nice.

balance Regars, from Spain.

Last edited by KRorschachZ; 11-08-2010 at 07:07 PM.
KRorschachZ is offline   Reply With Quote
Old 11-08-2010, 07:02 PM   #9
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
Quote:
Originally Posted by Starson17 View Post
I'm also not quite sure what he wants, but this will ignore an RSS feed link and get only the RSS feed summary.
Code:
    use_embedded_content  = True
True ?...

(ok. I don´t understand, but thanks for the try...)
KRorschachZ is offline   Reply With Quote
Old 11-09-2010, 09:35 AM   #10
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 KRorschachZ View Post
True ?...

(ok. I don´t understand, but thanks for the try...)
What don't you understand? Content in an RSS feed is said to be "embedded" in the feed when you can read it on the feed page without needing to follow a link to another page (usually an article, but sometimes it's an audio/video file). Most of the time the feed page has a short summary of what will be found at the link and most recipes set use_embedded_content = False.

If you want to prevent the recipe from following the link, you set use_embedded_content = True.
Starson17 is offline   Reply With Quote
Old 11-09-2010, 11:29 AM   #11
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
Quote:
Originally Posted by Starson17 View Post
What don't you understand? Content in an RSS feed is said to be "embedded" in the feed when you can read it on the feed page without needing to follow a link to another page (usually an article, but sometimes it's an audio/video file). Most of the time the feed page has a short summary of what will be found at the link and most recipes set use_embedded_content = False.

If you want to prevent the recipe from following the link, you set use_embedded_content = True.
OK, now yes understand now..., but I thought that "in my example", (link pdf)...

Spoiler:
Quote:
class AdvancedUserRecipe1289246400(BasicNewsRecipe):
title = u'RSS sumary not access file pdf link'
oldest_article = 7
max_articles_per_feed = 100

feeds = [(u'Start page info', u'http://www.gobcantabria.es/rss/fichero93.xml'), (u'Info news only dates and first text', u'http://www.gobcantabria.es/rss/fichero94.xml')]


insert use_embedded_content = false. (false of not read, not jump link)....

But see img when insert your code:
Attached Thumbnails
Click image for larger version

Name:	RSS crask not link pdf.JPG
Views:	369
Size:	24.8 KB
ID:	60914  

Last edited by KRorschachZ; 11-09-2010 at 10:19 PM.
KRorschachZ is offline   Reply With Quote
Old 11-10-2010, 02:25 PM   #12
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 KRorschachZ View Post
But see img when insert your code:
My Spanish is rusty, but I'm pretty certain it's telling you that you made a mistake when you inserted the line of code I posted. You have indented it incorrectly. Do not use tabs, and give it the same indent as oldest_article = 7.
Starson17 is offline   Reply With Quote
Old 11-10-2010, 02:59 PM   #13
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
Quote:
Originally Posted by Starson17 View Post
My Spanish is rusty, but I'm pretty certain it's telling you that you made a mistake when you inserted the line of code I posted. You have indented it incorrectly. Do not use tabs, and give it the same indent as oldest_article = 7.
ok, fine, look at the pictures, are in Spanish, but just wanted to indicate that the recipe out file now weighs a few bytes and also is very quick to execute.

main image, product selection, open text article, "but not open" code .... pdf

(now, not see a big text "%PDF-1.4 %âãÏÓ 2 0 obj endobj 1 0 obj/M(D:201", when select article)


thanks


I was unaware that influenced the bleeding line, I was accustomed to languages and compilers such as C, years ago, and the developer chose the line tab, only visual selections ... but now I already know ... ;-)

about suggestion for program, about this:

https://www.mobileread.com/forums/sho...3&postcount=73

as open and run the pdf link can be slow and costly, the option to download depending on certain characteristics, size small, name, etc ... as a separate file to the recipe, put in outstanding tasks in the system, to send the reader, the same time send the recipe, which would indicate a brief overview of the file sent to the reader ...

thanks and best regards from spain.
Attached Thumbnails
Click image for larger version

Name:	screen_shot-17362.gif
Views:	341
Size:	11.9 KB
ID:	60965   Click image for larger version

Name:	screen_shot-17363.gif
Views:	353
Size:	33.2 KB
ID:	60966   Click image for larger version

Name:	screen_shot-17364.gif
Views:	327
Size:	13.8 KB
ID:	60967  

Last edited by KRorschachZ; 11-10-2010 at 03:05 PM.
KRorschachZ is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre recipe for daily Portuguese newspaper "Correio da Manhã" jmst Recipes 2 11-01-2010 01:01 PM
Help with a recipe for "What the Duck" web comic jphphotography Recipes 2 10-12-2010 10:20 PM
Problem "saving to disk" pdf files lucone Calibre 1 06-28-2010 05:29 AM
"Cleansing" of PDF files psychomike PDF 4 02-18-2010 03:27 PM
I need info on the DR1000s for "searching with in" .pdf files cs2501 iRex 11 12-25-2008 04:22 AM


All times are GMT -4. The time now is 08:13 AM.


MobileRead.com is a privately owned, operated and funded community.