我使用一个名为youtube dl
的库来获取youtube视频的下载链接,并获得正确的网址
这是一个示例
https://r2---sn-uxaxjvhxbt2u-5at6.googlevideo.com/videoplayback?expire=1577139299&ei=A-gAXuKOOcajVeuhiNAG&ip=156.210.188.56&id=o-AIMsVKrgAzchflwvC8RghEdaFx_qidHvNxF4CrsjzjKs&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-uxaxjvhxbt2u-5at6%2Csn-5hne6nsy&ms=au%2Crdu&mv=m&mvi=1&pl=18&initcwndbps=196250&mime=video%2Fmp4&ratebypass=yes&dur=809.749&lmt=1572659309400505&mt=1577117629&fvip=2&fexp=23842630&c=WEB&txp=5532432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRgIhAMrLlARE6aG-ooI1Qe9qpxmniWpMNDG_lE3egvIrftliAiEAg7LELBlJ1gs5d-7dBkSM4J1hw7flEYDhwCn9ez19YrM%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRQIhAKalOjpgvfKSwt5mRFqKJZgGA6vRKhueoT2mxgBKEBbqAiB1fN858sxAWZn422GzqdZw4yb4YOBC9tDvwOLukPMwXA%3D%3D
但是问题是我试图制作一个锚标记或类似的东西来下载我尝试过的
<a download href="youtube-dl-url">download</a>
但它仍然redirect
我无法观看视频