November 2008
Intermediate to advanced
208 pages
4h 32m
English
This version of the web scraper has the same functionality as the one found in Chapter 7 (see "#44 Link Scrape" on Link Scrape, "#45 Image Scrape" on How It Works, and "#46 Scraper" on Hacking the Script). The difference between the script in Chapter 7 and the one below is the addition of GetoptLong and RDoc. This version has the advantage of a standard help message, along with command-line arguments for the specific functions.
# == Synopsis # # webScraper.rb: scrape specific information from websites # # # == Usage # # webScraper.rb [OPTIONS] ... URL # # -h, --help # show help # # --links , -l # scrape ...
Read now
Unlock full access