cloudquery: 把任意网站变成 serverless API
发布于 5 年前 作者 timqian 2398 次浏览 来自 分享

screenshot

API

Example url: https://cloudquery.t9t.io/query?url=https://news.ycombinator.com/best&selectors=*:nth-child(1) > * > *:nth-child(2) > *:nth-child(2) > :nth-child(1),:nth-child(3) *:nth-child(1) > *:nth-child(3) > *:nth-child(1)

Query params:

  • url: url of the webpage you want to fetch
  • selectors: css selectors describing the elements interests you

Returns:

  • innerText: element innerText
  • href: element href
回到顶部