google-trends-api icon indicating copy to clipboard operation
google-trends-api copied to clipboard

Usage without leveraging node.Agent

Open Fohlen opened this issue 5 years ago • 1 comments

Currently this library is heavily restricted as any proxy implementation must follow the http.Agent implementation. However, for many other environments it is desirable use the library only for preprocessing. A function should then yield:

  • the URL which would be forwarded to http.Agent including the query
  • necessary cookies or HTTP parameters

In this way it can then be used with other software such as fetch or request (potentially in any language). Would it be feasible and desirable to do such a refactoring in utilities.js ? The end result would be a get_options function (or similar) that is both internally used and exported.

If this is desirable let me know:

  • would you like to implement something like this
  • or would you accept a PR for such a feature?

All the best, Lennard

Fohlen avatar Dec 20 '20 17:12 Fohlen

Hi Lennard, a PR would definitely be welcome! I’ve really fallen off on this project

On Dec 20, 2020, at 10:05, Lennard Berger [email protected] wrote:

 Currently this library is heavily restricted as any proxy implementation must follow the http.Agent implementation. However, for many other environments it is desirable use the library only for preprocessing. A function should then yield:

the URL which would be forwarded to http.Agent including the query necessary cookies or HTTP parameters In this way it can then be used with other software such as fetch or request (potentially in any language). Would it be feasible and desirable to do such a refactoring in utilities.js ? The end result would be a get_options function (or similar) that is both internally used and exported.

If this is desirable let me know:

would you like to implement something like this or would you accept a PR for such a feature? All the best, Lennard

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

pat310 avatar Dec 20 '20 17:12 pat310