Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/code4craft/webmagic
/ xpath
Function
xpath
webmagic-scripts/src/main/resources/js/defines.js:4–6 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
2
return
page.getHtml().$(str).toString();
3
}
4
function
xpath(str){
5
return
page.getHtml().xpath(str).toString();
6
}
7
function
urls(str){
8
links = page.getHtml().links().regex(str).all();
9
page.addTargetRequests(links);
Callers
1
github.js
File · 0.70
Calls
3
getHtml
Method · 0.80
toString
Method · 0.65
xpath
Method · 0.65
Tested by
no test coverage detected