Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2009, 03:10 PM   #1
posativ
Junior Member
posativ began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2009
Device: PRS-505
HTML with external links

Hi,

I hope, I've choosen the right subforum.
I am not really familiar with all these ebooks standards...

I would like to make a little python script which downloads from the given wikipedia article all mentioned and linked wikipedia-entries for lets say 1 or 2 recursion depth.

My output would be the following some html files.

How can I convert them to e.g. LRF, so I can click on a link in the LRF to get the related article in another LRF-file?
posativ is offline   Reply With Quote
Old 02-03-2010, 03:48 PM   #2
eksor
Connoisseur
eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.
 
eksor's Avatar
 
Posts: 94
Karma: 999884
Join Date: Jun 2009
Device: prs700, i-mate JAMin, smartq v7, GeeksPhone Zero, iPad 3rd Gen
Quote:
Originally Posted by posativ View Post
Hi,

I hope, I've choosen the right subforum.
I am not really familiar with all these ebooks standards...

I would like to make a little python script which downloads from the given wikipedia article all mentioned and linked wikipedia-entries for lets say 1 or 2 recursion depth.

My output would be the following some html files.

How can I convert them to e.g. LRF, so I can click on a link in the LRF to get the related article in another LRF-file?
I think that lrf files are self contained, the whole bunch of images, html/xml files and so on are compressed in a single file (ala chm), without possibility of external lrf files linking.

calibre http://calibre-ebook.com/ relies in python, i think, and already has web2disk and ebook-convert cmd line utilities that should do what you want.

The bad thing is that I tried that with mixed results, blame on wikipedia layout not calibre (I would trashcan my prs700 without that marvelous software). To be fair with wikipedia, I think that recursive downloading of articles it is not recommended in the TOS or something similar. And I can understand that, overloading of the servers and things like that.

If plucker format is fine for you, you can try plucker or sunrisexp, this two work very well, I was able to read the whole Solar System (60-70MB) article in my ppc.

Regards.
eksor is offline   Reply With Quote
Old 02-07-2010, 07:27 AM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 63,129
Karma: 41205449
Join Date: Nov 2006
Location: UK
Device: PW2, iPad Retina Mini, iPhone 4, MS Surface Pro, Onyx T68, N7,
The Mobipocket file format supports linking to other files in some of its implementations. I don't know, off-hand, of any other eBook file format that does.
HarryT is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Will Calibre maintain the links when it converts HTML? ficbot Calibre 3 11-18-2010 10:27 PM
html to zip without following links dracore Calibre 1 09-08-2010 06:10 PM
Adding external links to audio for iBooks nihonjon ePub 2 07-23-2010 04:29 AM
Multiple html issue - too many links and zip isn't created in calibre Katelyn Calibre 1 03-10-2009 01:31 PM
HTML of all the Baen Webscription eBooks with links to all the formats mjdb Workshop 3 03-31-2008 01:28 PM


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


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