Is there a way or a module to convert html code to json in html? (python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a way or a module to convert html code to json in html? (python)

I want to get data from a html code as a string converted to json (dict) Any way to do it? In python

9th Jan 2020, 8:58 AM
Sousou
Sousou - avatar
2 Answers
+ 1
I think the standard json module can do this with json.dumps() but I haven't tried it. Check: https://stackoverflow.com/questions/43469412/convert-html-source-code-to-json-object/43469641#43469641
9th Jan 2020, 11:56 AM
Tibor Santa
Tibor Santa - avatar