Created by: tomothumb
This PR is supports evaluatePageArgs for passing arguments to page.evaluatePage.
I don't know why hccrawler.js#L163 use template string.
Officially, pageFunction on page.evaluate allow <function|sting> type. official docs
examples
HCCrawler.launch({
evaluatePage: ((args) => ({
title: $('title').text()
foo: args.arg1,
bar: args.arg2
})),
evaluatePageArgs: {
arg1 : 'foo',
arg2 : 'bar',
},
…
})