Remove support for Howtoons.com, the old blog is not available anymore
authorAntonio Ospite <ao2@ao2.it>
Tue, 27 Jun 2017 08:45:47 +0000 (10:45 +0200)
committerAntonio Ospite <ao2@ao2.it>
Tue, 27 Jun 2017 11:36:20 +0000 (13:36 +0200)
README
src/rss_converter_howtoons.com.xsl [deleted file]
tweeper.1.asciidoc

diff --git a/README b/README
index 5f22618..7d47e8e 100644 (file)
--- a/README
+++ b/README
@@ -35,7 +35,6 @@ The currently supported sites are:
   * Twitter.com
   * Pump.io based websites, like Identi.ca
   * Dilbert.com
-  * Howtoons.com
   * Instagram.com
   * Facebook.com (public pages)
 
diff --git a/src/rss_converter_howtoons.com.xsl b/src/rss_converter_howtoons.com.xsl
deleted file mode 100644 (file)
index 35a6739..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<!--
-  Stylesheet to convert Howtoons.com to RSS.
-
-  Copyright (C) 2014  Antonio Ospite <ao2@ao2.it>
-
-  This file is part of tweeper.
-
-  This program is free software: you can redistribute it and/or modify
-  it under the terms of the GNU General Public License as published by
-  the Free Software Foundation, either version 3 of the License, or
-  (at your option) any later version.
-
-  This program is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program.  If not, see <http://www.gnu.org/licenses/>.
--->
-
-<!--
-  The RSS feed link is broken on http://howtoons.com so just work around it.
-
-  Howtoons uses Wordpress, so maybe this style sheet can be used as a base for
-  scraping other Wordpress sites.
--->
-
-<xsl:stylesheet version="1.0"
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:php="http://php.net/xsl"
-    xsl:extension-element-prefixes="php"
-    exclude-result-prefixes="php">
-
-    <xsl:output method="xml" indent="yes"/>
-
-    <xsl:variable name="BaseURL">
-        <xsl:text>http://howtoons.com</xsl:text>
-    </xsl:variable>
-
-    <xsl:template match="//div[contains(@id, 'post-')]">
-        <xsl:variable name="item-permalink" select=".//div[@class='post-headline']//a/@href"/>
-        <item>
-            <title>
-                <xsl:value-of select="normalize-space(.//div[@class='post-headline']//a)"/>
-            </title>
-            <link>
-                <xsl:value-of select="$item-permalink"/>
-            </link>
-            <guid>
-                <xsl:value-of select="$item-permalink"/>
-            </guid>
-            <pubDate>
-                <xsl:variable name="date" select="substring-before(.//div[@class='post-byline'], ',')"/>
-                <!-- date format is MM.DD.YY -->
-                <xsl:variable name="month" select="substring($date, 1, 2)"/>
-                <xsl:variable name="day" select="substring($date, 4, 2)"/>
-                <xsl:variable name="year" select="substring($date, 7, 2)"/>
-                <xsl:variable name="iso-date" select="concat('20', $year, '-', $month, '-', $day)"/>
-                <xsl:value-of select="php:functionString('Tweeper\Tweeper::strToRssDate', $iso-date)"/>
-            </pubDate>
-            <description>
-                <xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
-                <xsl:copy-of select=".//div[contains(@class, 'post-bodycopy')]/p"/>
-                <xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
-            </description>
-        </item>
-    </xsl:template>
-
-    <xsl:template match="/">
-        <xsl:variable name="channel-title" select="//title"/>
-        <xsl:variable name="channel-link" select="$BaseURL"/>
-
-        <rss version="2.0">
-            <xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
-            <channel>
-                <generator>Tweeper</generator>
-                <title>
-                    <xsl:value-of select="$channel-title"/>
-                </title>
-                <link>
-                    <xsl:value-of select="$channel-link"/>
-                </link>
-                <description>
-                    <xsl:text>The world's greatest D.I.Y. comic website! Tools of mass construction!</xsl:text>
-                </description>
-                <image>
-                    <title>
-                        <xsl:value-of select="$channel-title"/>
-                    </title>
-                    <link>
-                        <xsl:value-of select="$channel-link"/>
-                    </link>
-                    <url>
-                        <xsl:text>http://www.howtoons.com/wp-content/themes/atahualpa/images/header/tuck1000.png</xsl:text>
-                    </url>
-                </image>
-                <xsl:apply-templates select="//div[contains(@id, 'post-')]"/>
-            </channel>
-        </rss>
-    </xsl:template>
-</xsl:stylesheet>
index ac1fdd1..019df14 100644 (file)
@@ -29,7 +29,6 @@ The sites that tweeper is able to scrape and convert to RSS are:
 * Twitter.com
 * Pump.io based websites, like Identi.ca
 * Dilbert.com
-* Howtoons.com
 * Instagram.com
 * Facebook.com (public pages)