![]() |
#1 |
Zealot
![]() Posts: 101
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
|
Get article link in preprocess_html()
Hi,
Is it possible to get the current article link in preprocess_html()? Thanks, Fei. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,242
Karma: 23446430
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, use preprocess_raw_html for that. You can always convert it to soup with self.index_to_soup(raw). Just remember to return str(soup) at the end.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() Posts: 101
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
|
Thanks!
BTW, my recipe failed with reprocess_html replaced by preprocess_raw_html() until I realized preprocess_html was called after keep_only_tags and remove_tags while preprocess_raw_html was not. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Article link is hyperlinked into the text of every article of an RSS feed.. | unkn0wn | Recipes | 3 | 09-10-2021 02:50 AM |
parse_index for a jpg link as an article url | xiatian | Recipes | 2 | 12-01-2018 10:51 PM |
E-mail an article LINK to Kindle? | semicomatose | Amazon Kindle | 2 | 11-06-2015 02:10 PM |
Article object in preprocess_html | stuartweinstein | Recipes | 1 | 11-18-2010 11:53 AM |
Article link - How to beat Kindle... | kennyc | News | 6 | 09-08-2009 08:21 AM |