见:Genius API Referent。我所能找到的只是在API文档的示例中将鼠标悬停在属性上:“用于在源文本中锚定引用对象的信息”。 有没有人知道或有关于它的文档的链接?它可能有什么结构? range
的格式会根据其引用的项目类型而有所不同吗?
有时看起来范围有点结构化(/referents/10225839
):
...
range: {
start: "/div[1]/p[1]",
startOffset: "0",
end: "/div[1]/p[1]",
endOffset: "76",
before: "d-color: #fff;
}
div {
width: auto;
margin: 0 auto;
border-radius: 0;
padding: 1em;
}
}
Example Domain
",
after: ". You may use this
domain in examples without prior coordination or asking for permission.
More information...
",
content: "This domain is established to be used for illustrative examples in documents"
},...
而其他时候似乎不那么重要(/referents?song_id=3039923
):
range: {
content: "I make a play fucking up your whole life"
},