Skip to content
mowat27Public

About

A webcrawler written in < 20 lines of ruby

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple web crawler written in ruby. I wrote this as an exercise in writing terse ruby which is (hopefully) still readable. It’s not intended to fulfil a practical purpose

From the command line…

ruby crawler.rb http://github.com 2

The first argument is the url to start crawling from. The second argument is maximum depth to which the script should follow links - after all, we don’t want to crawl the entire Web!

Note that you need to have the test site running to run the specs. You can do this by running

lib/crawler/testserver.rb

About

A webcrawler written in < 20 lines of ruby

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages