Hello, I'm are scraping a site that have data in script tag.
The json payload is mixed with some trailing and leading JavaScript code. I can't use json.loads() on unclean / invalid json string.
Is there any library that removes the JS code and give valid string?
If someone have encountered similar case, your insights maybe helpful. Thanks