Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
}
7
function
urls(str){
8
links = page.getHtml().links().regex(str).all();
9
page.addTargetRequests(links);
10
}
Callers
2
oschina.js
File · 0.70
github.js
File · 0.70
Calls
5
getHtml
Method · 0.80
addTargetRequests
Method · 0.80
all
Method · 0.65
regex
Method · 0.65
links
Method · 0.65
Tested by
no test coverage detected