[REBOL] Re: Searching For Data On Websites
From: carl:cybercraft at: 27-Dec-2001 22:54
On 27-Dec-01, Dr. Louis A. Turk wrote:
> Fellow Rebols,
> Let's say you want to search for certain data on a list of websites.
> How do you assure that you search every page on each web site on
> your list, but not go to any pages on sites linked to from those web
> sites?
Off the top of my head, I'd say just comparing the URLs with the
site's URL (by length) should do it...
>> site: http://www.abc.de/
== http://www.abc.de/
>> url1: http://www.abc.de/home.html
== http://www.abc.de/home.html
>> url2: http://www.abb.de/home.html
== http://www.abb.de/home.html
>> site = copy/part url1 length? site
== true
>> site = copy/part url2 length? site
== false
--
Carl Read