usunyu / youtube-porter

Automate upload video to YouTube from any sources
0 stars 0 forks source link

Figure out how to use proxy to download video #40

Open usunyu opened 5 years ago

usunyu commented 5 years ago

Option 1: Develop my own downloader and set proxy, refer to: https://github.com/Henryhaohao/Bilibili_video_download https://github.com/PiaoRongZhen/bilibili-videoDownload https://github.com/soimort/you-get/blob/develop/src/you_get/extractors/bilibili.py

Option 2: See: https://github.com/kamikat/bilibili-get/issues/2

usunyu commented 5 years ago

Option 3: Still use kanbilibili, with header:

pc_browser_headers = {
        # 伪装PC浏览器
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134',
        # 防御式编程
        'Referer': 'https://www.bilibili.com/'
}
usunyu commented 5 years ago

Option 4: Modify the source code: https://github.com/kamikat/bilibili-get