<?xml version="1.0"?>
<!DOCTYPE content [ <!ENTITY nbsp " "> ]>
<rdf:RDF xml:base="http://snarfed.org/rdf"
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:dc="http://purl.org/dc/elements/1.1/">

<rdf:Description rdf:about="http://snarfed.org">
  <dc:title> snarfed.org  </dc:title>
  <dc:description> draw group stream of consciousness </dc:description>
  <dc:creator> Ryan Barrett &lt;snarfed at ryanb dot org&gt; </dc:creator>
  <dc:language> en </dc:language>
  <dc:format> text/html </dc:format>
  <dc:rights> Copyright 2002-2007 Ryan Barrett </dc:rights>
</rdf:Description>

<rdf:Description rdf:about="http://snarfed.org/space/snipscrape">
  <dc:title> snipscrape </dc:title>
  <dc:creator> Ryan Barrett &lt;snarfed at ryanb dot org&gt; </dc:creator>
  <dc:date> 2003-01-01T05:00:00Z </dc:date>
  <dc:language> en </dc:language>
  <dc:format> text/html </dc:format>
  <dc:rights> Copyright 2002-2007 Ryan Barrett </dc:rights>

  <content>
    <p><a href="/space/snipscrape"><img src="/space/scraper.jpg" alt="/space/scraper.jpg" title="" /></a></p>

<p>For the impatient: <br />
<a href="/space/snipscrape-0.2.tar.gz">Download snipscrape 0.2 </a> <br />
<a href="/space/snipscrape.xslt">View snipscrape.xslt </a> <br />
<a href="http://snipsnap.org/">SnipSnap web site</a></p>

<p>Snipscrape is a screen scraper for SnipSnap. It enables you to import pages from
one SnipSnap site into another, or to recover content from SnipSnap-generated
HTML pages. It does this by transforming HTML pages generated by SnipSnap into
XML that can be imported.</p>

<p>Snipscrape is implemented in XSLT, and comes with a shell script for *nix
platforms that does some useful preprocessing. You can use snipscrape without
the shell script, but you'll need to perform a few tasks by hand, such as
escaping special characters.</p>

<p>Assuming you'd like to scrape two pages, snip1.html and snip2.html, here's what
you'd do:</p>

<div class='p-shadow'><pre><code>$ snipscrape.sh snip1.html snip2.html &gt; snips.xml
</code></pre></div>

<p><br class='clearing' />Now, go to the manager page in your SnipSnap, import snips.xml, and you should
be set!</p>

<p>See also:</p>

<ul>
<li><a href="http://snipsnap.org/space/xml+issue">Rendering SnipSnap snips with XSLT</a></li>
<li><a href="http://blog.fivesight.com/prb/space/Migrating+Radio+to+SnipSnap">Migrating from Radio to SnipSnap with
XSLT</a></li>
<li><a href="http://snipsnap.org/space/xml+issue">Using XML to structure snips</a></li>
<li><a href="/space/servlets with snipsnap">servlets with snipsnap</a></li>
<li><a href="/space/snipsnap 1.0b1 virtual hostname patch">snipsnap 1.0b1 virtual hostname patch</a></li>
<li><a href="/space/snipsnap comment without login patch">snipsnap comment without login patch</a></li>
<li><a href="/space/snipsnap macros">snipsnap macros</a></li>
<li><a href="/space/snipsnap recent-changes snip name patch">snipsnap recent-changes snip name patch</a></li>
<li><a href="/space/snipsnap register without email">snipsnap register without email</a></li>
<li><a href="/space/snipsnap script macro and python">snipsnap script macro and python</a></li>
<li><a href="/space/virtual host redirection">virtual host redirection</a></li>
</ul>

  </content>

  <rdf:Seq>

  </rdf:Seq>
</rdf:Description>
</rdf:RDF>
