Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2015, 12:54 PM   #1
bounce
Zealot
bounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavens
 
Posts: 135
Karma: 13892
Join Date: Mar 2010
Device: Ipad, Kindle 7
Html to Mobi

When adding a .html file can I get Calibre to only look for content in one folder up?

I'm trying to convert 8 years of posts from a website from .html to .mobi. I've used sitesucker to download the content, but the folder hierarchy it downloaded looks like:

folder - year
folder - month
folder - numbered posts within that month

When trying to add an index file from one of the individual posts with the month calibre sticks on "Reading metadata and adding to library (1 books)." Yet, when I move an index file (and folder directly above with its content) outside of the directory structure that sitesucker downloaded it will then convert quick and well in Calibre. I'm guessing what is happening is when trying to add an .html file that's within this hierarchy of year/month/individual post that calibre is looking for content in all folders above and hangs. Any suggestions? Please discuss
bounce is offline   Reply With Quote
Old 10-23-2015, 01:59 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by bounce View Post
When adding a .html file can I get Calibre to only look for content in one folder up?

I'm trying to convert 8 years of posts from a website from .html to .mobi. I've used sitesucker to download the content, but the folder hierarchy it downloaded looks like:

folder - year
folder - month
folder - numbered posts within that month

When trying to add an index file from one of the individual posts with the month calibre sticks on "Reading metadata and adding to library (1 books)." Yet, when I move an index file (and folder directly above with its content) outside of the directory structure that sitesucker downloaded it will then convert quick and well in Calibre. I'm guessing what is happening is when trying to add an .html file that's within this hierarchy of year/month/individual post that calibre is looking for content in all folders above and hangs. Any suggestions? Please discuss
Does it 'Hang" or is it just very busy?
BTW is the HTML that stalls, Valid, with all pieces now Local?
theducks is offline   Reply With Quote
Advert
Old 10-23-2015, 02:14 PM   #3
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run it from the command line, like this

ebook-convert file.html file.mobi

then you can use --max-levels to control the depth or recursion (defaults to 5)
kovidgoyal is offline   Reply With Quote
Old 10-23-2015, 02:45 PM   #4
bounce
Zealot
bounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavens
 
Posts: 135
Karma: 13892
Join Date: Mar 2010
Device: Ipad, Kindle 7
Quote:
Originally Posted by theducks View Post
Does it 'Hang" or is it just very busy?
BTW is the HTML that stalls, Valid, with all pieces now Local?
The .html that I drag and drop into Calibre stays busy for hours with all the content local. When I remove that .html file (and one folder above it, each connected and representing one post) to a different location on the hard drive it quickly converts with no delay which leads me to think it's looking in folders above.

This method of moving works, but it's too time-intensive and defeats the purpose as I could just go to the website and download to instapaper each page (8000+ pages though) and then I'd have it on my Kindle. Are there any other ways to get a subscribe/download a whole site to Calibre bypassing an RSS feed limit?
bounce is offline   Reply With Quote
Old 10-23-2015, 02:48 PM   #5
bounce
Zealot
bounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavensbounce is a rising star in the heavens
 
Posts: 135
Karma: 13892
Join Date: Mar 2010
Device: Ipad, Kindle 7
Quote:
Originally Posted by kovidgoyal View Post
Run it from the command line, like this

ebook-convert file.html file.mobi

then you can use --max-levels to control the depth or recursion (defaults to 5)
Hmmm I'm going to have to look in the manual on that. I'm not sure if you mean a command line in Calibre or terminal on the Mac. I've just switched from PC to Mac so learning terminal is something I'm slowly started getting into. In the method you describe, is that only for one, or can I do that in batch for 8000 plus pages?

I'm just starting to really get into calibre too, so perhaps there is a website subscription setting or plug-in that will allow me to download a site beyond the 5 or so latest RSS posts that are available for this site.
bounce is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML to MOBI kaushik Conversion 2 04-13-2012 08:30 PM
Problem with html -> Mobi conversion - html tags visible. khromov Calibre 9 08-06-2011 11:25 AM
Convert HTML to MOBI (HTML recognized as ZIP file) pdubois Conversion 1 01-25-2011 12:55 PM
mobi -> html mor0o0o Calibre 13 12-05-2009 08:02 AM
HTML to mobi How to AlexBell Calibre 0 06-30-2009 01:17 AM


All times are GMT -4. The time now is 04:40 PM.


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