12-01-2018, 12:57 PM | #1 |
Connoisseur
Posts: 50
Karma: 10
Join Date: Oct 2018
Device: kindle
|
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! |
12-01-2018, 10:41 PM | #2 |
creator of calibre
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.
|
12-01-2018, 10:51 PM | #3 |
Connoisseur
Posts: 50
Karma: 10
Join Date: Oct 2018
Device: kindle
|
|
|
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 |