X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/e053ac2a08c18296cdfe329e385a8d7a6c6fa962..a02e73270ebfb3aa4f4eaacd048e32c791d99d38:/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();