CloudQuery

点击几下即可将任何网站转化为应用程序接口(无服务器并支持 SPA!)。「Turn any website to API by several clicks (serverless and support SPA!)」

  • 所有者: t9tio/cloudquery
  • 平台: AWS Lambda,Linux,Mac,Windows
  • 许可证: GNU General Public License v3.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

CloudQuery

Join us

Turn any website to API by several clicks.

Try online: https://cloudquery.t9t.io

API

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

Run locally

# install dependencies
npm i
# start frontend server(for auto restart when code change)
npm run sb
# start backend server(for auto restart when code change)
npm run sf

# visit http://localhost:1234

How to deploy your own CloudQuery to AWS lambda

1. Configuration

  • update profile(AWS Credential Profiles) in up.json to use your own aws account
  • update rateLimit in config.json to set your own rate limit (Default: 5 request/hour)

2. Deploy

# deploy to aws lambda
up

# see the URL of your CloudQuery
up url

# deploy production version(to cloudquery.t9t.io)
up deploy production

Thanks

  • up for deploying serverless API to AWS with ease
  • serverless-chrome for running chrome on AWS lambda
  • finder for making it easy to select elements on webpage

主要指标

概览
名称与所有者t9tio/cloudquery
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证GNU General Public License v3.0
所有者活动
创建于2019-01-19 06:29:29
推送于2023-01-07 04:08:19
最后一次提交2020-07-24 10:21:54
发布数0
用户参与
星数2.2k
关注者数32
派生数137
提交数36
已启用问题?
问题数16
打开的问题数9
拉请求数3
打开的拉请求数21
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?