pat310 / google-trends-api

An API layer on top of google trends
https://www.npmjs.com/package/google-trends-api
MIT License
877 stars 175 forks source link

Feature request: Dockerize #120

Open ohld opened 5 years ago

ohld commented 5 years ago

Hi there and thanks for the library!

It would be very useful if there would be a way to use your tool in a microservice architecture. To make it, you'll need to create a docker image of your library and allow it to receive http requests and return the result JSON in the output.

So basically just the same as you already do, but allow to pass arguments into your JS functions and return its results through HTTP interface (like a webservice).

This will allow everyone to use your tool (not only JS developers). Thanks.

ohld commented 5 years ago

You can take a look at Mercury parser - they created a similar thing for they JS web parser. JS: https://github.com/postlight/mercury-parser API: https://github.com/postlight/mercury-parser-api Dockerfile: https://github.com/morejust/mercury-parser-docker