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 12-01-2018, 12:57 PM   #1
xiatian
Connoisseur
xiatian began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Oct 2018
Device: kindle
Question parse_index for a jpg link as an article url

Hi,
I went into a problem when using parse_index. Some website's sections are just pictures, which are .jpg links(like https://www.irishtimes.com/polopoly_fs/1.3520128.1528206115!/image/image.jpg_gen/derivatives/box_620_330/image.jpg ) rather than normal html web pages. So if I still use list of articles dictionary like {'url',jpg_url} will fail because it's not a html tree to parse. How can I work around this issue?
Thanks!
xiatian is offline   Reply With Quote
Old 12-01-2018, 10:41 PM   #2
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
create a dummy html file in the local filesystem that links to the image and use a file:/// URL to point to it.
kovidgoyal is offline   Reply With Quote
Old 12-01-2018, 10:51 PM   #3
xiatian
Connoisseur
xiatian began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Oct 2018
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
create a dummy html file in the local filesystem that links to the image and use a file:/// URL to point to it.
Yes, that's just what I did. Thank you!
xiatian is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert article URL? Mixx Recipes 4 01-09-2014 01:26 PM
New York Times - Link to article URL? gianfri Recipes 2 11-09-2013 09:53 PM
Get article URL in postprocess_html rmflight Recipes 5 11-29-2012 11:37 AM
Problem with Article Date in parse_index spedinfargo Recipes 5 02-19-2011 07:12 PM
Article Dates with parse_index EnergyLens Calibre 6 04-21-2010 10:13 PM


All times are GMT -4. The time now is 02:46 AM.


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