View Source treewalker_crawler_config (treewalker v0.4.1)

Link to this section Summary

Link to this section Types

-opaque config()
-type depth() :: non_neg_integer().
-type fetcher() :: module().
-type fetcher_options() :: treewalker_fetcher:options().
-type scraper() :: module().
-type scraper_options() :: treewalker_scraper:options().
-type store() :: module().
-type store_options() :: treewalker_store:options().
-type url() :: treewalker_page:url().
-type user_agent() :: binary().

Link to this section Functions

-spec fetcher(config()) -> fetcher().
Link to this function

fetcher(Fetcher, Config)

View Source
-spec fetcher(fetcher(), config()) -> config().
-spec fetcher_options(config()) -> fetcher_options().
Link to this function

fetcher_options(Options, Config)

View Source
-spec fetcher_options(fetcher_options(), config()) -> config().
-spec init() -> config().
-spec max_depth(config()) -> depth().
Link to this function

max_depth(MaxDepth, Config)

View Source
-spec max_depth(depth(), config()) -> config().
-spec merge(config(), map()) -> config().
-spec scraper(config()) -> scraper().
Link to this function

scraper(Scraper, Config)

View Source
-spec scraper(scraper(), config()) -> config().
-spec scraper_options(config()) -> scraper_options().
Link to this function

scraper_options(Options, Config)

View Source
-spec scraper_options(scraper_options(), config()) -> config().
-spec store(config()) -> store().
-spec store(store(), config()) -> config().
-spec store_options(config()) -> store_options().
Link to this function

store_options(StoreOptions, Config)

View Source
-spec store_options(store_options(), config()) -> config().
-spec url(config()) -> url().
-spec url(url(), config()) -> config().
-spec user_agent(config()) -> binary().
Link to this function

user_agent(UserAgent, Config)

View Source
-spec user_agent(binary(), config()) -> config().