Register Guidelines E-Books Today's Posts Search

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-23-2010, 12:54 PM   #1246
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
The Wired Magazine (do not confuse with the existing wired recipe this one downloads entire magazine content available on the web).
Attached Files
File Type: zip wired_mag.zip (1.8 KB, 178 views)
kiklop74 is offline  
Old 01-23-2010, 03:39 PM   #1247
Over
Wizard
Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.Over ought to be getting tired of karma fortunes by now.
 
Over's Avatar
 
Posts: 1,462
Karma: 6061516
Join Date: May 2008
Location: Cascais, Portugal
Device: Kindle PW, Samsung Galaxy Note Pro 12.2", OnePlus 6
Quote:
Originally Posted by kiklop74 View Post
New recipe for ionline.pt:

Thank you very much! It's working great.

Can I ask one last favour?

I would really be thankful for a recipe for:

http://www.nursingtimes.net/rss-feeds/

I've tried the basic way, but it doesn't work.
Over is offline  
Old 01-23-2010, 04:50 PM   #1248
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
New recipe for neowin.net:
Attached Files
File Type: zip neowin.zip (1.6 KB, 174 views)
kiklop74 is offline  
Old 01-23-2010, 05:06 PM   #1249
tnronin
Zealot
tnronin doesn't littertnronin doesn't littertnronin doesn't litter
 
tnronin's Avatar
 
Posts: 118
Karma: 210
Join Date: Jan 2010
Location: Mid-Tennessee
Device: PRS-300
Quote:
Originally Posted by dwanthny View Post
Unzip the the files into a directory.

Open Calibre
Drop down arrow next to Fetch news
Add custom news source
Load recipe from file (select nationalreviewonline.recipe)

I just followed these steps to verify things.

Good Luck

&
Awesome! It is working now.
tnronin is offline  
Old 01-23-2010, 05:47 PM   #1250
Krittika Goyal
Vox calibre
Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.
 
Krittika Goyal's Avatar
 
Posts: 412
Karma: 1175230
Join Date: Jan 2009
Device: Sony reader prs700, kobo
JASN epub

@jayman
let me know if you get the same epub file
Attached Files
File Type: zip kidney.epub.zip (272.6 KB, 176 views)
Krittika Goyal is offline  
Old 01-23-2010, 06:25 PM   #1251
XanthanGum
Connoisseur
XanthanGum began at the beginning.
 
XanthanGum's Avatar
 
Posts: 51
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
Revised Recipe For Common Dreams

Kovid,

I'm attaching an improved recipe for Common Dreams. I hope you can replace the current version in Calibre.

Thanks...

XG
Attached Files
File Type: zip commonDreams.zip (680 Bytes, 188 views)
XanthanGum is offline  
Old 01-23-2010, 07:41 PM   #1252
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by XanthanGum View Post
Kovid,

I'm attaching an improved recipe for Common Dreams. I hope you can replace the current version in Calibre.

Thanks...

XG
Sure .
kovidgoyal is online now  
Old 01-23-2010, 09:48 PM   #1253
andersent
Junior Member
andersent began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2009
Device: kindle
Recipe for creating an ebook out of online html books

Hi All,

Shouldn't I be able to go to a website that has a table of contents of web links for an online book and essentially populate the feeds [] = section of a recipe by looping through the html links on the TOC page? This way, if you find a site that has a book or a bunch of links to content that you would like on your eReader, you don't have to point to every link by name on a page if there are a good deal of links. Below is a concrete example that will help clarify what I am looking to do:

I could create my own feed.xml file and put it on a webpage somewhere and point calibre at this feed. The feed would simply specify the following link (which has a table of contents with links on the same site to the book): http://www.newmanreader.org/works/idea/index.html

Now, if I point calibre to just this page, it will just see all the links but to my knowledge (unless I'm missing something) it can't follow every link on this page. So, rather than specifying each link that is on this page in the feeds.xml file, can't I just have calibre read the html, look for ahref= tags on this page, and then dynamically build a list of feeds[] = based on the ahref tags? It seems like some of the newspaper recipes essentially do this but I can't always follow the logic of what is happening in the pre built recipes. I think this would make custom recipes and calibre very powerul, as you could go to a website that has a listing of a mess of links and have it go download all of the content and section it into "articles" on your eReader, but within one "book."
andersent is offline  
Old 01-23-2010, 10:03 PM   #1254
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by andersent View Post
Hi All,

Shouldn't I be able to go to a website that has a table of contents of web links for an online book and essentially populate the feeds [] = section of a recipe by looping through the html links on the TOC page?
You are able to do that. In fact all recipes do exactly that. The difference is the source of the links. It is either RSS feed (which is just an xml), or common html page.

In case of RSS feeds everything is more or less automated, custom programming is required for extracting links from common web page.

For an example of this just take a look at this page:

http://calibre-ebook.com/user_manual/news.html
kiklop74 is offline  
Old 01-23-2010, 11:09 PM   #1255
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Question

I downloaded news, while d/ling an image was not found 404 error. This resulted in this image string being in the final epub.

<img src="http://wattsupwiththat.com/Users/Anthony/AppData/Local/Temp/moz-screenshot-3.png" alt="" class="calibre9"/>

Instead of something like this

<img src="../../feed_1/article_10/images/img3.jpg.jpg" alt="" class="calibre9"/>

When my PRS-505 tried to access this image it locked up and eventually restarted. I don't have the experience or knowledge required to get rid of this in post processing. Is there any way to clean up the code prior to creating the epub that would eliminate any images that have <img src="http to start the string?

I know how to eliminate all images but I find the images valuable. I just want to remove the images that couldn't be downloaded and thus end up in the epub calling an image from a url.

Last edited by DoctorOhh; 01-23-2010 at 11:13 PM.
DoctorOhh is offline  
Old 01-24-2010, 12:49 AM   #1256
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Code:
def postprocess_html(self, soup, first):
   for img in soup.findAll('img', src=True):
       if img['src'].startswith('http:'): img.extract()
kovidgoyal is online now  
Old 01-24-2010, 01:27 AM   #1257
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by kovidgoyal View Post
Code:
def postprocess_html(self, soup, first):
   for img in soup.findAll('img', src=True):
       if img['src'].startswith('http:'): img.extract()
Thank you I'll give it a go.

Update: I appended this post process onto the offending site recipe, but they corrected their page so I have to assume it works great. One thing for sure it isn't doing any harm.

Thanks again.

Last edited by DoctorOhh; 01-24-2010 at 05:38 AM.
DoctorOhh is offline  
Old 01-24-2010, 11:01 AM   #1258
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I forgot that the last line in postprocess_html should be

return soup
kovidgoyal is online now  
Old 01-24-2010, 03:37 PM   #1259
Krittika Goyal
Vox calibre
Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.Krittika Goyal ought to be getting tired of karma fortunes by now.
 
Krittika Goyal's Avatar
 
Posts: 412
Karma: 1175230
Join Date: Jan 2009
Device: Sony reader prs700, kobo
@jayman
let me know if this one is ok?
Krittika Goyal is offline  
Old 01-24-2010, 05:32 PM   #1260
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by kovidgoyal View Post
I forgot that the last line in postprocess_html should be

return soup
I got that from many of the implementations.

Thanks again for helping fill in the gaps.
DoctorOhh is offline  
Closed Thread


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:29 PM.


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