In scraping a website, I am getting given javascript code as a response from the server.
document.write("<script src='/src/one/data.cached.js?ver=9153'></script>");
amorphic.setApplication('one');
amorphic.setSchema(
{
"Address": {"customer": 1},
"Person": {"customer": 1},
"Phone": {"customer": 1}
}
);
So, how can I extract this json data from the response using python?
{
"Address": {"customer": 1},
"Person": {"customer": 1},
"Phone": {"customer": 1}
}