| 
			
			 | 
		#1246 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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).
		 
		
	
		
		
			 | 
| 
		 | 
	
	
| 
			
			 | 
		#1247 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,462 
				Karma: 6061516 
				Join Date: May 2008 
				Location: Cascais, Portugal 
				
				
				Device: Kindle PW, Samsung Galaxy Note Pro 12.2", OnePlus 6 
				
				
				 | 
	
	
	
		
		
		
		
		 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.  
		 | 
| 
		 | 
	
	
| 
			
			 | 
		#1248 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800 
				Karma: 194644 
				Join Date: Dec 2007 
				Location: Argentina 
				
				
				Device: Kindle Voyage 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			New recipe for neowin.net:
		 
		
	
		
		
			 | 
| 
		 | 
	
	
| 
			
			 | 
		#1249 | 
| 
			
			
			
			 Zealot 
			
			![]() ![]() ![]() Posts: 118 
				Karma: 210 
				Join Date: Jan 2010 
				Location: Mid-Tennessee 
				
				
				Device: PRS-300 
				
				
				 | 
	
	|
| 
		 | 
	
	
| 
			
			 | 
		#1250 | 
| 
			
			
			
			 Vox calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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  | 
| 
		 | 
	
	
| 
			
			 | 
		#1251 | 
| 
			
			
			
			 Connoisseur 
			
			![]() 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  | 
| 
		 | 
	
	
| 
			
			 | 
		#1252 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	|
| 
		
 | 
	
	
| 
			
			 | 
		#1253 | 
| 
			
			
			
			 Junior Member 
			
			![]() 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."  | 
| 
		 | 
	
	
| 
			
			 | 
		#1254 | |
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800 
				Karma: 194644 
				Join Date: Dec 2007 
				Location: Argentina 
				
				
				Device: Kindle Voyage 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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  | 
|
| 
		 | 
	
	
| 
			
			 | 
		#1255 | 
| 
			
			
			
			 US Navy, Retired 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897 
				Karma: 13806776 
				Join Date: Feb 2009 
				Location: North Carolina 
				
				
				Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen 
				
				
				 | 
	
	
	
		
		
			
			 
			
			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-24-2010 at 12:13 AM.  | 
| 
		 | 
	
	
| 
			
			 | 
		#1256 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				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()
 | 
| 
		
 | 
	
	
| 
			
			 | 
		#1257 | |
| 
			
			
			
			 US Navy, Retired 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897 
				Karma: 13806776 
				Join Date: Feb 2009 
				Location: North Carolina 
				
				
				Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 ![]() 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 06:38 AM.  | 
|
| 
		 | 
	
	
| 
			
			 | 
		#1258 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I forgot that the last line in postprocess_html should be  
		
	
		
		
		
		
		
		
		
		
		
		
	
	return soup  | 
| 
		
 | 
	
	
| 
			
			 | 
		#1259 | 
| 
			
			
			
			 Vox calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412 
				Karma: 1175230 
				Join Date: Jan 2009 
				
				
				
				Device: Sony reader prs700, kobo 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@jayman 
		
	
		
		
		
		
		
		
		
		
		
		
	
	let me know if this one is ok?  | 
| 
		 | 
	
	
| 
			
			 | 
		#1260 | 
| 
			
			
			
			 US Navy, Retired 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897 
				Karma: 13806776 
				Join Date: Feb 2009 
				Location: North Carolina 
				
				
				Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen 
				
				
				 | 
	
	|
| 
		 | 
	
	
![]()  | 
            
        
            
            
  | 
    
			 
			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 |