Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
11–20 of 23 posts
Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#12Sorry 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.
Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#13Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#14Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#15Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#16Are 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
#17If this is a community reference I’m going to be very happy.
Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#18I'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…
Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#19Great project! I can imagine this may greatly improve web certain classes of scraping. @gavino I'm curious what tooling and architecture you used to put this together?
Then for actually turning the query into a digestable output I used the GraphQL schema builder that handles accepts HTML nodes from the requested page and grabs the right variables.
Re: Show HN: CoolQLCool – Turn Websites into GraphQL Accessible APIs
#20I'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…
I remember seeing GDOM a while back when I first started this project, but forgot to write it down as a source of inspiration. I'm gonna add all of these as alternatives, because they're all great :D