05-11-2024, 04:31 AM | #1 |
Zealot
Posts: 104
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\\\">\" })" } Last edited by njpig; 05-11-2024 at 04:43 AM. |
05-12-2024, 01:06 AM | #2 |
Fanatic
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
|
go to ['data'] use regex to seperate json data.
|
Advert | |
|
05-17-2024, 05:26 AM | #3 |
Zealot
Posts: 104
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. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
caps.json | Rellwood | Plugins | 2 | 03-13-2022 05:02 PM |
On the file metadata_db_prefs_backup.json | Horus68 | Calibre | 2 | 06-03-2020 06:10 AM |
How do I move JSON files? | Rellwood | Calibre | 2 | 10-20-2015 01:26 AM |
Shorcut request: Load plugin from file | Terisa de morgan | Calibre | 2 | 01-02-2015 04:09 AM |
Force reloading collections.json | enn | Kindle Developer's Corner | 2 | 10-03-2010 07:57 PM |