maple3142 / ytdl Goto Github PK
View Code? Open in Web Editor NEWGet youtube video download url
License: MIT License
Get youtube video download url
License: MIT License
使用360极速浏览器,关闭所有安全设置,关闭所有插件。今天下午能使用,晚上突然不能用。搜索广告都搜不出东西来,提示“您看起来在使用广告拦截扩充功能。”
Using 360 extreme brower. Turned off all security settings and plug-ins. I can normally use it till this afternoon but fail tonight. Tried a lot and never work. Still warning"'You seems to have ad-blocking extension installed".
请问有无调试的方法,或是怎么知道到底是什么阻止了地址获取?多谢
Is there any logs to debug? thanks a lot
这代码耦合度也太高了,各种嵌套,看了半天才看明白
以下错误代码提示是在终端会收到,但是程序执行是有返回相关的结果,能够获取到相关video的info,
不知道有没有办法屏蔽这个错误提示或者修复的办法?
use fallback SyntaxError: Invalid regular expression: /c)));d&&g.R=function((.+?)){(.+?)}/: Unmatched ')'
at new RegExp ()
at parsedecsig (/Users/xxxx/ytdl/decsig.js:39:31)
他是運行在瀏覽器上的嗎?
還是需要部署的NodeJS?
我是在这个地方了解到 fent/node-ytdl-core#434 (comment)
这个老外也有同样的问题,
youtube这边针对一些 video,它是限制了只有当前访问ip 才能访问,
比如我们解析出来这样的url:
这其中的ip=82.234.194.1 是我本地的ip,所以在本地点击过去是能正常播放和下载的,
如果是在server上面解析出来,ip这边会是服务器的ip,然后我在电脑这边访问服务器这边解析出来的url,就会出现403,因为ip不同导致。
所以我的问题是,有没有办法让解析程序这边把 ip这一参数单独处理,替换为 当前访问的ip值上去,让youtube认为是当前浏览器这边的访问ip在访问然后去生成url,我想这样就能解决个别video出现403问题了。
希望大神在帮忙看看这个方案有没有可行性?
please help me
Your script is java Based. How to change PHP based Script.
Thank You.
Hi
thanks for sharing this awesome tool . can i use this for google drive file
我尝试了这样的格式 https://maple3142-ytdl.glitch.me/api?id=-tKVN2mAKRI 返回的url如果是不带signature的影响,是能直接点击播放,但是带signature就会说403错误,从你的博客文章里面的parse的方法 https://blog.maple3142.net/2018/05/05/how-to-download-youtube-video/ 自己试了一下不能成功,能否帮忙直接做到你现在的接口上面,万分感谢
This problem only occurs in chrome browser. I use windows desktop and latest chrome browser. Whenever I play any YouTube video, there is appear a popup for disable Adblocker for work your script well. But this script works well without disable Adblocker. So why this pop up...plz fix that
Not showing 720p links anymore!!
非常感謝您的教學範例,但我使用的過程中有部分影片無法正常取得資源,我把錯誤回報給您
程式擲出錯誤
use fallback ReferenceError [Error]: yt is not defined
at playerBootstrap (vm.js:1:66960)
at vm.js:1:67207
at Script.runInContext (vm.js:137:20)
at D:\Node\ytdl\node_modules\vm2\lib\main.js:778:53
at timeout_bridge.js:1:1
at Script.runInContext (vm.js:137:20)
at doWithTimeout (D:\Node\ytdl\node_modules\vm2\lib\main.js:462:17)
at VM.run (D:\Node\ytdl\node_modules\vm2\lib\main.js:776:10)
at exports.runInContext (D:\Node\ytdl\sandboxutil.js:5:12)
at D:\Node\ytdl\decsig.js:62:4
有正常取得資源連結,但無法正常取得音訊資源
存取 r2---sn-u4h-un5l.googlevideo.com 的要求遭到拒絕您未獲得授權,無法瀏覽這個網頁。
HTTP ERROR 403
tested links:
HAR logs:
https://gist.github.com/ccdd13/c2372ceab38711370b450976eca4cdf8
browser : firefox 76.0.1 (64-bit)
error message
The page isn't redirecting properly
An error occurred during a connection to ytdl.maple3142.net.
This problem can sometimes be caused by disabling or refusing to accept cookies.
普通的video没有问题,
主要还是带signature的影片,
因为我还没买https证书,
在服务器这边只是简单的开启了ip地址访问api,
不知道是不是必须要绑定域名加https才可以?
另外我尝试使用readme里面提供的的接口地址,加上我要下载的videoId,
比如 https://maple3142-ytdl.glitch.me/api?id=jUeryEph6uc
返回过来的url也是同样403错误,
只有在本地localhost访问返回过来的url可以正常的能下载。
如果可以的话,希望您能帮忙在做一下协助
The API https://www.youtube.com/get_video_info?video_id=${id}&el=detailpage
returns HTTP 404.
Therefore your JSON API https://ytdl.maple3142.net/api?id=${id}
always returns "Adblock conflict".
This one does not show 720p - https://maple-ytdl.herokuapp.com/api?id=L4Ws-EbrvwQ the video does have 720p stream !!
Or am I missing something again here :(
I also encountered the same situation today, the browser is the latest version of chrome, and the script is also recently updated。
After testing, he was blocked by the de-advertising plug-in, so I don't know if I can change the logo information for the download box.
Originally posted by @lbq1121 in #18 (comment)
Is this project still active? The sample link is not working.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.