MCPcopy Index your code
hub / github.com/code4craft/webmagic / urls

Function urls

webmagic-scripts/src/main/resources/js/defines.js:7–10  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

5 return page.getHtml().xpath(str).toString();
6}
7function urls(str){
8 links = page.getHtml().links().regex(str).all();
9 page.addTargetRequests(links);
10}

Callers 2

oschina.jsFile · 0.70
github.jsFile · 0.70

Calls 5

getHtmlMethod · 0.80
addTargetRequestsMethod · 0.80
allMethod · 0.65
regexMethod · 0.65
linksMethod · 0.65

Tested by

no test coverage detected