You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 31, 2021. It is now read-only.
How to tell youtube-comments-task to use Shadow Socks proxy #4
I just started to learn (node)js and want to scrape all comments of a list of youtube videos, by adding forEach loop and file output (for every video's comments) into your example code.
I got the following error for every youtube video id:
I'm behind GFW of china, using SS proxy through brook GUI client on MacOS.
Could you please tell me how to tell youtube-comments-task to use the SS proxy?
The right way to do this would be to add support for an options parameter in youtube-comments-task. I.e. fetchComments(videoId, pageToken, { proxy: '123.123.123.123:8888' }).
This package will eventually receive a major bump (see #3) so that option will likely have to wait until then.
Activity
philbot9 commentedon Jul 7, 2018
Hi there,
The easiest thing would be to modify the request opts in https://github.com/philbot9/youtube-comments-task/blob/master/src/lib/utils/request.js#L7
You will want to add your proxy configuration there. Refer to https://github.com/request/request
The right way to do this would be to add support for an options parameter in youtube-comments-task. I.e.
fetchComments(videoId, pageToken, { proxy: '123.123.123.123:8888' }).This package will eventually receive a major bump (see #3) so that option will likely have to wait until then.