Mac下使用 you-get 来下载视频网站上的视频以及相关bug处理

自从有了 you-get ,麻麻再也不用担心下不了视频了

一、INSTALLATION(MAC下,我只选择Option1,但是出现了bug)

特别说明:-bash: you-get: command not found解决

修改:.bash_profile文件内容如下:

export JAVA_HOME=`/usr/libexec/java_home`

export PATH=${PATH}:${JAVA_HOME}:${ANDROID_SDK_ROOT}:${ANDROID_SDK_ROOT}/platform-tools:${ANDROID_SDK_ROOT}/tools:${JAVA_HOME}:${JAVA_HOME}/bin

export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"

# Setting PATH for Python 3.5

# The original version is saved in .bash_profile.pysave  增加此条

PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"

export PATH  

详见:http://blog.csdn.net/wqdwin/article/details/70912482


You-get 官网:https://you-get.org/

Prerequisites

The following dependencies are required and must be installed separately, unless you are using a pre-built package or chocolatey on Windows:

Option 1: Install via pip

The official release of you-get is distributed on PyPI, and can be installed easily from a PyPI mirror via the pip package manager. Note that you must use the Python 3 version of pip:

$ pip3 install you-get

Option 2: Install via Antigen

Add the following line to your .zshrc:

antigen bundle soimort/you-get

Option 3: Use a pre-built package (Windows only)

Download the exe (standalone) or 7z (all dependencies included) from: https://github.com/soimort/you-get/releases/latest.

Option 4: Download from GitHub

You may either download the stable (identical with the latest release on PyPI) or the develop (more hotfixes, unstable features) branch of you-get. Unzip it, and put the directory containing the you-get script into your PATH.

Alternatively, run

$ [sudo] python3 setup.py install

Or

$ python3 setup.py install --user

to install you-get to a permanent path.

Option 5: Git clone

This is the recommended way for all developers, even if you don’t often code in Python.

$ git clone git://github.com/soimort/you-get.git

Then put the cloned directory into your PATH, or run ./setup.py install to install you-get to a permanent path.

Option 6: Using Chocolatey (Windows only)

> choco install you-get

Option 7: Homebrew (Mac only)

You can install you-get easily via:

$ brew install you-get

Shell completion

Completion definitions for Bash, Fish and Zsh can be found in contrib/completion. Please consult your shell’s manual for how to take advantage of them.

UPGRADING

Based on which option you chose to install you-get, you may upgrade it via:

$ pip3 install --upgrade you-get

or download the latest release via:

$ you-get https://github.com/soimort/you-get/archive/master.zip

or use chocolatey package manager:

> choco upgrade you-get

In order to get the latest develop branch without messing up the PIP, you can try:

$ pip3 install --upgrade git+https://github.com/soimort/you-get@develop



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值