-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy #1249
Comments
https://github.com/fent/node-ytdl-core/blob/master/example/proxy.js You can pass a custom http agent in request options. |
Sir how i can create a custom http agent ? please Help |
https://github.com/fent/node-ytdl-core/blob/master/example/proxy.js Look at this example. |
I am trying to use proxy agent but somehow it is not using the proxy server. ytdl-core is still using the local network to download videos. Please see the code below.
|
@itsaqib96 i think it is because the structure differs from what you are using. Correct: const videoInfo = await ytdl.getInfo(url, { requestOptions: { agent } }); Yours: const videoInfo = await ytdl.getInfo(url, { agent }); Notice the |
hello every please does any one got solution to this i try using the format above my code // Proxy URL format // Create proxy agent const options = process.env.NODE_ENV === 'production' ? { agent } : {};
the error am getting "Type 'HttpsProxyAgent<"http://:@ddc.oxylabs.io:8000"> | undefined' is not assignable to type 'Agent | undefined'. & is where i put my username and password |
Anyone can tell me how I can use proxy ? Please give some examples code
The text was updated successfully, but these errors were encountered: