distubejs / ytdl-core

YouTube video downloader in javascript.
MIT License
261 stars 48 forks source link

I have IP restriction #72

Closed yourshaxzod closed 2 months ago

yourshaxzod commented 2 months ago

I have thread limit, can you suggest me to not get thread limit.

It slows down significantly when I run through a proxy

I can't log in through cookies


Can you help me how to make it work efficiently and quickly?

Environment

yourshaxzod commented 2 months ago

I also use a proxy, but the processing speed is now 5 ~ 8 seconds instead of the 1 ~ 2 seconds it used to be. So I am looking into the possibility of building my own fast proxy. (using Node.js)

I used cookie and it still works vps speed is better than proxy, for the cookie to work properly you must have two youtube accounts and after receiving the cookie of one you must switch to the next account and the account that received the cookie must be saved and do not log into the account that received the cookie again.

I don't know how long the cookie works, but I'd like to know

yourshaxzod commented 2 months ago

One question, what form of cookie are you using? I have been using EditThisCookie to get the following data.

{
    "domain": ".youtube.com",
    "expirationDate": 1234567890,
    "hostOnly": false,
    "httpOnly": true,
    "name": "---xxx---",
    "path": "/",
    "sameSite": "no_restriction",
    "secure": true,
    "session": false,
    "value": "---xxx---"
}

Also, the environment that uses ytdl-core is a serverless function, but I have never had success using cookies before.

cookies are only working on local computer, vps stopped working very fast and I'm using proxy again

gatecrasher777 commented 2 months ago

I don't know how long the cookie works, but I'd like to know

YouTube uses cookie rotation while you have an active website page open. So cookies get updated every ten minutes. If it gets a chance to update, the previous cookies stop working.

hextor1 commented 2 months ago

e. But

cookies not working on production server and also showing 403 error

Riders004 commented 1 month ago

I also use a proxy, but the processing speed is now 5 ~ 8 seconds instead of the 1 ~ 2 seconds it used to be. So I am looking into the possibility of building my own fast proxy. (using Node.js)

Can you share the code ?

Riders004 commented 1 month ago

I also use a proxy, but the processing speed is now 5 ~ 8 seconds instead of the 1 ~ 2 seconds it used to be. So I am looking into the possibility of building my own fast proxy. (using Node.js)

Can you share the code ?

I have not been able to build a proxy using Node.js because it was difficult. However, I can give you a proxy IP that I used before.

Bro I build using gpt but that valid proxy I'm getting is giving error connection issue for distube Ytdl