January 2020
Intermediate to advanced
532 pages
13h 31m
English
Suppose that we have to build a web crawler that can be used to index content from various websites. The process of doing that involves setting up a list of target sites and then kicking off the crawler. Let's create a module with the structure, as follows:
module WebCrawlerusing Dates# public interfaceexport Targetexport add_site!, crawl_sites!, current_sites, reset_crawler!# == insert global variables and functions here ==end # module
Our programming interface is quite simple. Let's see how to do this:
Read now
Unlock full access