View Source ExCrawlzy.Client.Handlers.List (ExCrawlzy v0.1.1)
Internal module to handle json fields, mainly helps to create modules with defined list selector match on compile
add to the module the use
and use the macro list_selector/1
to specify the multiple selector and list_size/1
to
specify the amount of elements to take
defmodule Some.Module do
use ExCrawlzy.Client.Handlers.List
list_size(5)
list_selector("div.element-1/3")
...
and adds the functions list_size/0
and get_list_selector_selector/0
to the module
> Some.Module.list_size()
5
> Some.Module.get_list_selector_selector()
"div.element-1/3"
Summary
Functions
Add the a selector to multiple items
To specify the number of elements to take on the crawl
Functions
Add the a selector to multiple items
To specify the number of elements to take on the crawl