X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/e053ac2a08c18296cdfe329e385a8d7a6c6fa962..f51c0d439f4199e90236df3eba9664a82a7be60d:/tweeper.php?ds=sidebyside diff --git a/tweeper.php b/tweeper.php index 9f09936..ed1e1c7 100644 --- a/tweeper.php +++ b/tweeper.php @@ -201,6 +201,10 @@ class Tweeper { return $serializer->getSerializedData(); } + private function get_xml_instagram_com($html) { + return $this->json_to_xml($html, '/window._sharedData = (.*);/', 'instagram'); + } + private function html_to_xml($html, $host) { $xmlDoc = new DOMDocument();