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 05-11-2024, 03:31 AM   #1
njpig
Zealot
njpig began at the beginning.
 
Posts: 101
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Load json which got from request in recipe

Hi guys,

Any idea how to handle following stuff by package json in recipe?

Code:
{
"code":0,
"data":"resetContentInfo
    ({
        \"attr\":5,
        \"content\":\"<a name=page1></a><ANCHOR id=page1></ANCHOR> <P>  <A href=\\\"https://mini.caixin.com/2024-05-07/102193662.html\\\" target=\\\"_blank\\\">\"
    })"
}
Thanks!

Last edited by njpig; 05-11-2024 at 03:43 AM.
njpig is offline   Reply With Quote
Old 05-12-2024, 12:06 AM   #2
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 541
Karma: 82944
Join Date: May 2021
Device: kindle
go to ['data'] use regex to seperate json data.
unkn0wn is offline   Reply With Quote
Old 05-17-2024, 04:26 AM   #3
njpig
Zealot
njpig began at the beginning.
 
Posts: 101
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Thanks a lot! This is what I did.

I am curious why this website responsed with data, which is close to json format but invalid and has to be parsed with extra efforts.
njpig is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
caps.json Rellwood Plugins 2 03-13-2022 04:02 PM
On the file metadata_db_prefs_backup.json Horus68 Calibre 2 06-03-2020 05:10 AM
How do I move JSON files? Rellwood Calibre 2 10-20-2015 12:26 AM
Shorcut request: Load plugin from file Terisa de morgan Calibre 2 01-02-2015 03:09 AM
Force reloading collections.json enn Kindle Developer's Corner 2 10-03-2010 06:57 PM


All times are GMT -4. The time now is 07:26 PM.


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