Live data from Hacker News

Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs

coolql.cool

1–10 of 23 posts

Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs

#3
Are you planning to build anything on top of this - service,company? I was thinking it would be a good way to build an api for some projects I've been thinking of working on, although I would probably want to switch out cheerio for https://github.com/intoli/remote-browser/

Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs

#8
I've previously written a very similar project called "graphql-scraper" (which is arguably a far less cool name...), you can check it out at http://github.com/lachenmayer/graphql-scraper

It works very similarly, with only superficial differences under the hood (eg. I used jsdom, and this uses cheerio). The `waitForSelector` feature is very cool!

You can see a live demo of the HN example using graphql-scraper at https://graphqlbin.com/v2/lxNohP

This example is deployed on Glitch - you can easily spin up your own using https://github.com/lachenmayer/graphql-scraper-server (with 1-click deploys to Heroku, Now & Glitch)

Of course (as mentioned already) there is also https://github.com/syrusakbary/gdom which uses Python+Graphene.

Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs

#10
post #9

Sorry a dumb question. What are the use cases ? Thx

1.) You have a website with data you'd like to consume.

2.) That website doesn't expose an api, but returns statically rendered html.

3.) You don't like parsing statically rendered html for the data you're looking for, and you'd prefer getting the data using a GraphQL interface.

Post reply on HN