From eafac3f425aa88b42e6a496b62304848d5bbb4a9 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 28 Feb 2015 01:54:34 +0100 Subject: [PATCH 1/1] Add support for converting Instagram user timelines to RSS --- rss_converter_instagram.com.xsl | 104 ++++++++++++++++++++++++++++++++++++++++ tweeper.php | 4 ++ 2 files changed, 108 insertions(+) create mode 100644 rss_converter_instagram.com.xsl 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(); -- 2.1.4