當前位置: 妍妍網 > 碼農

4K star! 又一款免費好用的視訊下載工具

2024-05-06碼農

* 戳上方藍字「 開源先鋒 」關註我

推薦閱讀:


大家好,我是開源君!

之前分享過不少視訊下載的開源計畫,今天開源君又發現一款不錯的計畫 - Cobalt ,分享給大家。

計畫簡介

Cobalt 是一個免費、無廣告且易於使用的媒體下載工具。它支持多種串流媒體服務,包括 B站、油管、tiktok 等。

當然,作者也說明,這個列表還會一直維護和更新,以應對網站的各種反扒策略。

目前計畫在Github上面收獲了4K star,還是挺受歡迎的。

效能特色

  • 支持多種串流媒體服務:支持 YouTube、Bilibili、Netflix 等眾多串流媒體服務,使用者可以輕松下載這些平台上的視訊和音訊內容。

  • 高效穩定的下載速度:采用了先進的下載技術和演算法,確保使用者能夠獲得高效穩定的下載速度,節省使用者的時間。

  • 簡單易用的操作界面:提供了直觀的操作界面和簡潔的操作流程,讓使用者可以輕松上手,無需復雜的設定和配置。

  • 靈活多樣的下載選項:允許使用者自訂下載選項,包括選擇下載的視訊品質、音訊格式等,滿足使用者的不同需求。

  • 安裝部署

    作者強烈建議使用docker來進行安裝部署,新建一個資料夾和yml檔

    mkdir cobalt
    cd cobalt && nano docker-compose.yml

    然後貼上下面的內容,按照我們自身的需求進行計畫的修改。

    version: '3.5'
    services:
    cobalt-api:
    image: ghcr.io/wukko/cobalt:7
    restart: unless-stopped
    container_name: cobalt-api
    init: true
    # if container doesn't run detached on your machine, uncomment the next line
    #tty: true
    ports:
    - 9000:9000/tcp
    # if you're using a reverse proxy, uncomment the next line and remove the one above (9000:9000/tcp):
    #- 127.0.0.1:9000:9000
    environment:
    # replace https://co.wuk.sh/ with your instance's target url in same format
    API_URL: "https://co.wuk.sh/"
    # replace eu-nl with your instance's distinctive name
    API_NAME: "eu-nl"
    # if you want to use cookies when fetching data from services, uncomment the next line and the lines under volume
    # COOKIE_PATH: "/cookies.json"
    # see docs/run-an-instance.md for more information
    labels:
    - com.centurylinklabs.watchtower.scope=cobalt
    # if you want to use cookies when fetching data from services, uncomment volumes and next line
    #volumes:
    #- ./cookies.json:/cookies.json
    cobalt-web:
    image: ghcr.io/wukko/cobalt:7
    restart: unless-stopped
    container_name: cobalt-web
    init: true
    # if container doesn't run detached on your machine, uncomment the next line
    #tty: true
    ports:
    - 9001:9001/tcp
    # if you're using a reverse proxy, uncomment the next line and remove the one above (9001:9001/tcp):
    #- 127.0.0.1:9001:9001
    environment:
    # replace https://cobalt.tools/ with your instance's target url in same format
    WEB_URL: "https://cobalt.tools/"
    # replace https://co.wuk.sh/ with preferred api instance url
    API_URL: "https://co.wuk.sh/"
    labels:
    - com.centurylinklabs.watchtower.scope=cobalt
    # update the cobalt image automatically with watchtower
    watchtower:
    image: ghcr.io/containrrr/watchtower
    restart: unless-stopped
    command: --cleanup --scope cobalt --interval 900
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock











    最後啟動容器即可。

    docker compose up -d

    當然也是可以使用 node.js 的方式

    git clone https://github.com/wukko/cobalt
    npm run setup
    npm start

    另外,計畫還支持api的方式下載視訊,具體參數、使用範例可以去檢視專門的api文件。

    計畫使用展示

    為了方便展示效果,作者也提供了一個工具演示連結。

    使用方法很簡單,只需要把視訊URL貼上進去,點選右邊的箭頭即可快速進行下載。

    在下方的設定裏面,可以自行設定下載的視訊、音訊的一些參數,如視訊的品質、大小,音訊的格式

    還有主題設定、檔名設定等。

    甚至還提供了一些快捷鍵

    作者在計畫最後也做了一定的說明提醒,Cobalt 不是盜版工具,只是一個下載工具,使用者應謹慎使用並遵守相關法律法規,對於所下載內容的使用、分發以及後果負責。

    總的來說,Cobalt 是一個非常方便易用的視訊下載器計畫,支持多種串流媒體服務,提供高效穩定的下載速度和靈活多樣的下載選項,讓我們又可以有多一個下載的選擇。

    更多計畫細節,感興趣的可以到計畫地址進行檢視:

    計畫地址:
    https://github.com/wukko/cobalt