https://github.com/fengdongfa1995/video-dl
download video from online video websites.
https://github.com/fengdongfa1995/video-dl
bilibili crawler pornhub python3 video
Last synced: 2 months ago
JSON representation
download video from online video websites.
- Host: GitHub
- URL: https://github.com/fengdongfa1995/video-dl
- Owner: fengdongfa1995
- License: apache-2.0
- Created: 2021-08-12T08:46:34.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-15T01:45:17.000Z (almost 5 years ago)
- Last Synced: 2025-12-15T05:50:46.585Z (6 months ago)
- Topics: bilibili, crawler, pornhub, python3, video
- Language: Python
- Homepage: https://fengdongfa1995.github.io/video-dl/
- Size: 1.93 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# video-dl
[](https://pypi.org/project/video-dl/)
`video-dl` is a naive online video downloader based on [aiohttp](https://docs.aiohttp.org/en/stable/).
## Prerequisites
- [ffmpeg](https://ffmpeg.org/) used to merge picture and sound to a complete video.
- [python](https://www.python.org) 3.8 or above (required by `:=` operator).
- [Node.js](https://nodejs.org/en/) used to run javascript code locally.
You could check [help manual](https://github.com/fengdongfa1995/video-dl/wiki/How-to-install-system-dependences)
in [wiki](https://github.com/fengdongfa1995/video-dl/wiki) to install these system dependencies.
## Installation
```bash
pip3 install video-dl
```
## Upgrading
```bash
pip3 install --upgrade video-dl
```
## Typical usage
### Download the highest-definition video
> :warning: If there are special symbols in your url, please enclose it with quotation marks.
```bash
video-dl 'https://www.bilibili.com/video/BV15L411p7M8'
```
> :warning: the `highest` depends my own view, maybe not the one you want.

### Download video which definition will be selected manually
```bash
video-dl -i 'https://www.bilibili.com/video/BV15L411p7M8'
```

### Download video to your specific directory
```bash
video-dl -d ~/tmp 'https://www.bilibili.com/video/BV15L411p7M8'
```

### Download video via your proxy
> :underage: we have to access some non-existing sites via proxy.
```bash
video-dl -p http://172.30.176.1:10809 'https://cn.pornhub.com/view_video.php?viewkey=ph5c87e70498951'
```

### Try to download videos in the same playlist (experimental)
```bash
video-dl -l 'https://www.bilibili.com/video/BV1qy4y1V7qU'
```

### Combine these arguments.
```bash
video-dl -d /mnt/d/Download -l -i 'https://www.bilibili.com/video/BV1qy4y1V7qU'
```

## Help document
### Program's help manual auto generated by `argparse`
you could use `video-dl -h` to see the below help manual.
```
usage: video_dl [-h] [-i] [-l] [-d DIRECTORY] [-c COOKIE] [-p PROXY] [-v] url
A naive online video downloader based on aiohttp
positional arguments:
url target url copied from online video website.
optional arguments:
-h, --help show this help message and exit
-i, --interactive Manually select download resources.
-l, --lists try to find a playlist and download all videos in it.
-d DIRECTORY, --directory DIRECTORY
set target diretory to save video file(s).
-c COOKIE, --cookie COOKIE
provide your cookie.
-p PROXY, --proxy PROXY
set proxy. e.g.: http://127.0.0.1:10809
-v, --version show program's version number and exit
You could find more important information in [github](https://github.com/fengdongfa1995/video_dl).
```
### Longer help manual written by myself
You could find how to install system prerequisites, FAQ and something else in [github's wiki](https://github.com/fengdongfa1995/video-dl/wiki).
# Supported websites
- [哔哩哔哩 (゜-゜)つロ 干杯~](https://www.bilibili.com/)
- [Free Porn Videos & Sex Movies](https://cn.pornhub.com/)
- [西瓜视频 - 高清免费在线视频 - 点亮对生活的好奇心](https://www.ixigua.com/)
- [免費成人視頻 - XVIDEOS.COM](https://www.xvideos.com/)
# How was this shit created?
- [在B站学习用Python做一个B站爬虫](https://www.bilibili.com/video/BV1nv411T798/)
# Getting Involved
You could discuss with me in [github's Discussions](https://github.com/fengdongfa1995/video-dl/discussions),
find bugs or submit your excelent ideas in [github's Issues](https://github.com/fengdongfa1995/video-dl/issues),
my last but the biggest wish is getting your [pull requests](https://github.com/fengdongfa1995/video-dl/pulls) to improve this naive tool.