<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/perl/tags/lwp</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 05:00:23 GMT</pubDate>
<item>
<title>(Perl) Backup all your tables from ZOHO CRM in CSV format - eszpee</title>
<link>http://snipplr.com/view/4574/backup-all-your-tables-from-zoho-crm-in-csv-format/</link>
<description><![CDATA[ <p>fill your username and password</p> ]]></description>
<pubDate>Mon, 14 Jan 2008 17:38:29 GMT</pubDate>
<guid>http://snipplr.com/view/4574/backup-all-your-tables-from-zoho-crm-in-csv-format/</guid>
</item>
<item>
<title>(Perl) Fetch RIFIAS on-line archive - iblis</title>
<link>http://snipplr.com/view/3437/fetch-rifias-online-archive/</link>
<description><![CDATA[ <p>Retrieves gif page images from RIFIAS on-line archive and combines them into a single pdf file</p> ]]></description>
<pubDate>Thu, 02 Aug 2007 08:59:41 GMT</pubDate>
<guid>http://snipplr.com/view/3437/fetch-rifias-online-archive/</guid>
</item>
<item>
<title>(Perl) submit a POST query with parameters - noah</title>
<link>http://snipplr.com/view/3135/submit-a-post-query-with-parameters/</link>
<description><![CDATA[ <p>from The Perl Black Book, Holzner, p. 1247</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:57:13 GMT</pubDate>
<guid>http://snipplr.com/view/3135/submit-a-post-query-with-parameters/</guid>
</item>
<item>
<title>(Perl) Grab linked files from a list of web pages - noah</title>
<link>http://snipplr.com/view/3126/grab-linked-files-from-a-list-of-web-pages/</link>
<description><![CDATA[ <p>## how to use

`perl grabit.pl urls_for_download.txt`

Expects as argument the name of a file containing a newline-delimited list of URLs:

    http://example.com/coolstuff
    http://example.com/coolstuff/fun
    http://example.com/videos/explosions

When invoked, launches an interactive shell that asks what type of file should be downloaded.  Then downloads all the files that are linked from each of the listed Web pages.

Note that the location of the download folder is hard-coded to `c:/windows/desktop/grabit/` so you may want to change that before trying.

This script is also [available on Github](http://github.com/textarcana/scrapers/blob/643e6e7cb349fa94cbc3fc88e1d55c7b6a262d11/grabit.pl)

## Wait! Do you know about WGet and Curl?

This script is legacy.  People seem to like it (hey, I still use it) but today I would probably not write my own tool to download multiple files off remote sites.

Instead I would likely just use a command-line Web browser like [WGet](http://lifehacker.com/software/top/geek-to-live--mastering-wget-161202.php 'Gina Trapani of Lifehacker, on the way of the WGet ninja') or Curl.  [LWP-Request would also do the trick](http://snipplr.com/view/4063/download-linked-jpegs-from-a-web-page-on-the-command-line/)

## do not comment your code like this!

For a great explanation of the rather baroque commenting style I was using circa 2001, see [Steve Yegge's excellent article on code style: *Portait of a n00b.*](http://steve-yegge.blogspot.com/2008/02/portrait-of-n00b.html)  

Of course, when I sit down to write a Perl script today, I [use POD](http://snipplr.com/view/18611/perl-pod-embedded-documentation-example/) to format and publish my comments.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:31:30 GMT</pubDate>
<guid>http://snipplr.com/view/3126/grab-linked-files-from-a-list-of-web-pages/</guid>
</item>
</channel>
</rss>