PMassicotte / gtrendsR

R functions to perform and display Google Trends queries
352 stars 112 forks source link

adding aditional proxy setting for Vmess protocol #397

Open iotanano opened 3 years ago

iotanano commented 3 years ago

Hi, could you please supporting Vmess protocol?

In Vmess protocol, there's a uuid("id") which includes user and password information together. No password 😂

None of the two ways below works.

setHandleParameters(user="my_uuid", proxyhost = "server_address", proxyport = xxxx, proxyauth = 15)

setHandleParameters(proxyhost = "server_address", proxyport = xxxx, proxyauth = 15)

By the way, when I use another package httr, things become easier:

set_config( use_proxy(url="server_address", port=xxxx) )

We'd really appreciate it if you could offer any suggestion.

eddelbuettel commented 3 years ago

Correct if I am wrong but whether or not we can use this depends on the backend by Google over which we have no control. Do you have any documentation references suggesting they support "Vmess" for the Gtrends endpoint?

iotanano commented 2 years ago

Hi eddelbuettel, sorry for my really really late reply.

Actually, Vmess is a protocol used by V2ray, a tool with which I could use to visit some websites like Google, Gtrends, twitter, Facebook(as they're blocked by our country's firewall). And it works fine.

Since there's no single password parameter in Vmess, it becomes difficult when I come to user and password setting in setHandleParameters.

Anyway, it's okay if it could not be solve. Maybe it's easier for other protocols like Shadowsocks.