spiderz 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +2 -2
- data/lib/spiderz.rb +1 -1
- metadata +1 -1
data/README.txt
CHANGED
@@ -17,14 +17,14 @@ Create a site map.
|
|
17
17
|
# create the class
|
18
18
|
spider = Spiderz.new "http://mysite.com"
|
19
19
|
|
20
|
-
# setup a custom
|
20
|
+
# setup a custom callback
|
21
21
|
spider.success do |url, doc|
|
22
22
|
title = (doc / "title").text.strip
|
23
23
|
puts "<a href='#{url}' >#{title}</a>"
|
24
24
|
end
|
25
25
|
|
26
26
|
# set it going
|
27
|
-
spider.crawl
|
27
|
+
spider.crawl "/"
|
28
28
|
|
29
29
|
== REQUIREMENTS:
|
30
30
|
|
data/lib/spiderz.rb
CHANGED