Comments (1)
Read the example please https://github.com/distubejs/ytdl-core?tab=readme-ov-file#proxy-support
const ytdl = require("@distube/ytdl-core");
const agent = ytdl.createProxyAgent({ uri: "my.proxy.server" });
ytdl.getBasicInfo("http://www.youtube.com/watch?v=aqz-KE-bpKQ", { agent });
ytdl.getInfo("http://www.youtube.com/watch?v=aqz-KE-bpKQ", { agent });
It is agent
option (getBasicInfo(url, { agent: yourProxyAgent })
), not requestOptions: { agent }
from ytdl-core.
Related Issues (17)
- Downloading files way slower than usual HOT 3
- Error when parsing watch.html, maybe YouTube made a change HOT 1
- Audio plays for a few seconds, then stops HOT 3
- Generated IP address not being used in outgoing undici request HOT 1
- TypeScript compilation fails HOT 3
- Issue with your ydtl-core fork package HOT 5
- Cannot play age restricted videos after adding cookies HOT 25
- Discord invite is invalid HOT 1
- what i should do? HOT 7
- Could not parse n transform function.
- Could not parce n transform function HOT 7
- Please report this issue with the "1690327295451-base.js" file on https://github.com/distubejs/ytdl-core/issues. HOT 2
- SyntaxError: Invalid left-hand side expression in postfix operation HOT 1
- WARNING: Could not parse n transform function. HOT 8
- if i play a song i got this file in my code HOT 2
- How to use proxy with `@distube/ytdl-core` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ytdl-core.