Skip to content

Latest commit

 

History

History
110 lines (69 loc) · 3.67 KB

README_CN.md

File metadata and controls

110 lines (69 loc) · 3.67 KB

xvideos-dl

Build status Python Version Dependencies Status

Code style: black Security: bandit Pre-commit Semantic Versions License

https://xvideos.com H 片命令行下载工具

工具特点

  • 下载单个视频(需视频播放页的 URL)
  • 下载收藏夹中的所有视频(需收藏夹页的 URL)
  • 下载用户上传的所有视频(需用户首页的 URL)
  • 下载频道发布的所有视频(需频道首页的 URL)
  • 分段高速下载,断点下载,进度与状态显示
  • 下载最高清视频(需要安装ffmpeg)

使用说明

安装依赖

  • 安装 Python 3.6.1 或以上版本
  • 安装 ffmpeg
    • Ubuntu/Debian: sudo apt install ffmpeg
    • MacOS: brew install ffmpeg
  • 注册 https://xvideo.com 账号,登录并拷贝 Cookie(必须有 session_token=xxx),首次使用时根据提示粘贴即可

安装工具 xvideos-dl

pip install -U xvideos-dl

获取工具使用帮助

xvideos-dl --help

下载视频

注意:首此使用时,程序会出现提示语要求输入 Cookie,用个人账号登录 https://xvideos.com 获取 Cookie 粘贴到终端,即可继续运行。Cookie 可以长期使用。

只需一行命令,下载单个 / 收藏夹 / 用户上传 / 频道发布 的所有视频

xvideos-dl https://www.xvideos.com/video37177493/asian_webcam_2_camsex4u.life https://www.xvideos.com/favorite/71879935/_ https://www.xvideos.com/profiles/mypornstation https://www.xvideos.com/channels/av69tv  

示例

Release History

1.3.0

  • Added support for downloading higher quality videos.

    CLI will download the highest quality video by default, which may be 1080p or higher, depending on the videos provided by XVIDEOS. So the download speed will be slower, if you want to be faster, you can use -q low or -q middle.

1.2.0

  • Support for Python 3.6.1+

1.1.2

Bugfix:

  • Fixed a bug that would not retry when the network connection failed.

1.1.1

New Feature:

  • Add parameters to control the start and end of the video in the download list.

Others:

  • When running the same command repeatedly, quickly skip the downloaded video.
  • Catch exceptions: 404 not found, forbidden downloading...

1.1.0

New Features:

  • Download all videos uploaded by users.
  • Download all videos posted by the channel.
  • Download single, playlist, user uploaded and channel posted videos in one command.
  • Optimize download status display.

1.0.1

New Features:

  • Download videos from favorites.
  • Show download speed.

1.0.0

Initial release on PyPY.