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 #2: Understanding The Site

Introduction

Some sites you find on the web were born for URLToys. Sites such as directory listing, single page image galleries linked directly to the images, etc. However, some sites look easy at first, but can end up being a lot of work if you try to do it the same way every time. This tutorial will help you to understand a few of the commands URLToys has that might save you a bunch of time. We'll go over a few types of sites, and good approaches for them.

A Simple Start: A Single Page, Full of Displayed Images

View this site in a browser:

http://urltoys.gotdoofed.com/tut2pics/images.html

It should come up with a really, really ugly layout of images. You might think that no one would EVER bother to make a layout like this, but certain sites have scripts that generate outputs like this so that people can just "Save As" in their browser to get the images.

Let's pretend for a minute that we actually wanted to get these images. To get them, we just need to give URLToys the URL of this site (you did read the first tutorial, no?), then use the img command. Don't be confused ... the img command does NOT mean "get all of the links to images on the page". It means "find the URLs to all displayed images on the page." This means that if you run img on a page of thumbnails, you're going to end up with a list of links to thumbnails. This command is ONLY for if you are actaully interested in the pictures you can see on this page.

URLToys(0)>add http://urltoys.gotdoofed.com/tut2pics/images.html
URLToys(1)>img
Searching "http://urltoys.gotdoofed.com/tut2pics/images.html"...16 found.
URLToys (16)>

You now have this list of images, ready for getting. The reality most people (luckily) don't design most web pages like this, so we need to know other ways to get the URLs we want.

Page 2 -->

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