Skip to content

Instantly share code, notes, and snippets.

@shengshampoo
Last active March 3, 2023 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shengshampoo/a6a1ac1f95aeb114afa122002ba84ffd to your computer and use it in GitHub Desktop.
Save shengshampoo/a6a1ac1f95aeb114afa122002ba84ffd to your computer and use it in GitHub Desktop.
Python pip 套件管理 安裝 zippyshare_downloader

安裝 Python 的相關工具:

  • 文字介面執行過程的錄影記錄工具 asciinema。
  • Virtualenv 建立虛擬環境以乾淨安裝Python程式。
 sudo apt-get install python3-pip git && python3 -m pip install asciinema && python3 -m pip install virtualenv 

asciinema 錄影記錄文字介面CLI執行安裝 zippyshare_downloader

/home/live/.local/bin/asciinema rec

Virtualenv 建立虛擬環境,並且在這虛擬環境裡, git clone zippyshare_downloader 程式和安裝所需要的附件, 執行zippyshare_downloader 下載鏈接。

zippyshare_downloader 影片下載鏈接:https://www45.zippyshare.com/v/MOztZk5c/file.html

影片出自於FOSDEM 2023 錄製簡報影片的"Linux Inlaws A how-to on world domination by accident" webm檔: https://jonatron.github.io/fosdem2023whisper/links.html

/home/live/.local/bin/virtualenv -p python3 envv3 && source /home/live/Downloads/envv3/bin/activate && git clone https://github.com/mansuf/zippyshare-downloader.git && cd zippyshare-downloader && /home/live/Downloads/envv3/bin/pip3 install -r ./requirements.txt && /home/live/Downloads/envv3/bin/pip3 list -v && /home/live/Downloads/envv3/bin/python3 -m zippyshare_downloader -h && /home/live/Downloads/envv3/bin/python3 -m zippyshare_downloader https://www45.zippyshare.com/v/MOztZk5c/file.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment