Main:
Home

Installer:
Windows Install
OSX (Dropflux)
Linux HOWTO

Documentation:
Forums
Main Docs
Command Index
Main POD
Efficiency
Module Docs
ChangeLog
TODO List
FAQ

Tutorials:
First Tutorial
Second Tutorial

Perl Modules:
WWW::URLToys
LWP::TkIO

Scripts:
Console - Modular
Console - Standalone
GUI Downloader

Extra Utils:
XTTitle for Unix
XTTitle for Win32

Contact:
Contact Me

Scripts
Tutorial

wget.u
notepad.u
jolene.u
indexes.u

Logos









 
Current Version: 1.28, updated 6/19/04 [Change Log]
URLToys Tutorial

Introduction (Continued)

Let's start with the introductory URL on the main URLToys documentation:

http://urltoys.gotdoofed.com/coolpictures/coolpictures.html

If you look at that in your browser, you'll see that it is a very simple page with one image on it, a six links. Five of the links go directly to images, and the last link goes to some other page we don't care about. Open your URLToys program. You should receive a prompt. Let's use the add command to start our digging.
URLToys(0)>add http://urltoys.gotdoofed.com/coolpictures/coolpictures.html
URLToys(1)>

Notice that the prompt has changed. The number listed in the prompt is the number of URLs that URLToys is currently remembering in its list. In order to see this list (of one URL at the moment), use the show command.
URLToys(1)>show
http://urltoys.gotdoofed.com/coolpictures/coolpictures.html
URLToys(1)>
Of course, this command can get a little hairy if you have thousands of entries in your list, but for now it's pretty tame.

Important Concept:One thing that's important to understand early on is this concept of a single list. URLToys operates on this idea of a list that you are constantly adding to, digging through sites with, and tailoring. Your goal with URLToys is to end up with a list of links directly to the files that you wish to have, so that URLToys can download them for you. Remember this!

Now that we have told URLToys what we want site (or sites) has the links or images we are interested in, we need to tell it what to look for. In this case, let's try to get a hold of those five links to the pictures on the site. The command to do this is make:

URLToys(1)>make
Searching "http://urltoys.gotdoofed.com/coolpictures/coolpictures.html"...6 found.
URLToys(6)>
If you notice, the prompt now shows that there are six links instead of one. Using the show command again, you'll see that they are the six links we saw on that very site! Now all we have to do is tell URLToys that we are only interested in the JPEG files, and then we can get them.

Page 3 -->

Written by Joe Drago, Copyright (C) 2004, Under the BSD License