Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Web crawler

  • Build a crawler that, given a single URL and a number N will visit N pages linked from that page. (Maybe need to also get to the links of the links etc.)
  • You can use HTML::TreeBuilder::XPath to extract the links from the html document.
  • It is probably better to allow only the main process to fork.