View script | License | Download documentation as: HTML or editable | Download script | History |
30-Apr 14:14 UTC
[0.048] 11.499k
[0.048] 11.499k
Documentation for: countweb.rUsage document for %countweb.r1. Introduction to %countweb.rThis library script is an example for scanning web pages. It scans a list of sites and counts the occurances of a string. 2. countweb At a Glance>> system/options/quiet: true >> do %countweb.r 47 http://www.rebol.com 15 http://www.sassenrath.com 0 http://www.amiga.org 0 http://www.cnn.comCounted the times the string REBOL occured in the listed site's home pages. 3. Configuring %countweb.rChange the string to look for in the string: variable 4. What you can learn4.1. Easy web page readerWhat other language do you know that can read in a web page with read http://sitename.com 4.2. find/tailThis example show how easy it can be to scan through a page of text with the line while [page: find/tail page string] [count: count + 1] 4.3. set-wordsThat same line shows off REBOL assignment, or set-word in REBOL speak. 5. Credits
|