From: Antonio Ospite Date: Sat, 28 Feb 2015 00:54:34 +0000 (+0100) Subject: Add support for converting Instagram user timelines to RSS X-Git-Tag: v0.4~33 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/eafac3f425aa88b42e6a496b62304848d5bbb4a9 Add support for converting Instagram user timelines to RSS --- diff --git a/rss_converter_instagram.com.xsl b/rss_converter_instagram.com.xsl new file mode 100644 index 0000000..f42ca8b --- /dev/null +++ b/rss_converter_instagram.com.xsl @@ -0,0 +1,104 @@ + + + + + + + + + https://instagram.com + + + + + + + + + + + + + + + + <xsl:value-of select="concat($user-name, ': ', $item-content-title)"/> + + + + + + + + + + + + + <![CDATA[ +


+ + ]]> +
+ + + +
+
+ + + + + + + + + Tweeper + + <xsl:value-of select="$channel-title"/> + + + + + + + + + + <xsl:value-of select="$channel-title"/> + + + + + + + + + + + + +
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();