• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

dinubs/coolqlcool: Nextjs server to query websites with GraphQL

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

dinubs/coolqlcool

开源软件地址(OpenSource Url):

https://github.com/dinubs/coolqlcool

开源编程语言(OpenSource Language):

JavaScript 92.5%

开源软件介绍(OpenSource Introduction):

Cool QL COOL

Deploy to now

CoolQLCool (CQC) is an open source Graph QL server that allows you to turn websites into a Graph QL api. You can play around with it in GraphiQL.

Important pieces of code are in schema/. Inside of schema/element.js is the schema for grabbing element information from pages. Inside of schema/parse.js is the schema for specifying which site you want to query.

All fields have a description alongside the function for determining what to return. If you have any questions on what a field returns feel free to make an issue and I can explain further what it does.

Deploying

You can very quickly run your own CQC server using Now. After you're all set up with a Zeit account, run npm run deploy in your terminal in this repo's directory. This will compile webpack for you, and run now for you. If you don't need the home page, simply run now.

Running

The important bits are able to be ran with npm start this boots up an express server with endpoints /graphql for creating queries, and a /graphiql endpoint for help with building queries.

To compile assets for the home page do webpack --watch.

Alternatives

Here's some other applications and tools that also do similar things as CoolQLCool. They're all great:

  • GDOM - DOM Traversing and Scraping using GraphQL
  • GraphQL Scraper - Extract structured data from the web using GraphQL



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap