Answer the question
In order to leave comments, you need to log in
json php not parsing?
I am writing a parser for insta, and such a problem, the information on the page is in the script and looks like this
<script type="text/javascript">
window._sharedData = {};
</script>
preg_match( '/window\._sharedData\s=\s(?<data>.*?)\;\<\//m', $result, $mat);
json_decode( $mat['data'] );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question