Skip to main content

A naive online video downloader based on aiohttp

Project description

video-dl

PyPI version

video-dl is a naive online video downloader based on aiohttp.

Prerequisites

  • ffmpeg used to merge picture and sound to a complete video.
  • python 3.8 or above (required by := operator).
  • Node.js used to run javascript code locally.

You could check help manual in wiki to install these system dependencies.

Installation

pip3 install video-dl

Upgrading

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.

video-dl 'https://www.bilibili.com/video/BV15L411p7M8'

:warning: the highest depends my own view, maybe not the one you want.

Normal Usage

Download video which definition will be selected manually

video-dl -i 'https://www.bilibili.com/video/BV15L411p7M8'

Normal Usage

Download video to your specific directory

video-dl -d ~/tmp 'https://www.bilibili.com/video/BV15L411p7M8'

set download directory

Download video via your proxy

:underage: we have to access some non-existing sites via proxy.

video-dl -p http://172.30.176.1:10809 'https://cn.pornhub.com/view_video.php?viewkey=ph5c87e70498951'

use proxy

Try to download videos in the same playlist (experimental)

video-dl -l 'https://www.bilibili.com/video/BV1qy4y1V7qU'

lists

Combine these arguments.

video-dl -d /mnt/d/Download -l -i 'https://www.bilibili.com/video/BV1qy4y1V7qU'

combine arguments

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.

Supported websites

How was this shit created?

Getting Involved

You could discuss with me in github's Discussions, find bugs or submit your excelent ideas in github's Issues, my last but the biggest wish is getting your pull requests to improve this naive tool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video-dl-0.0.17.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video_dl-0.0.17-py3-none-any.whl (59.4 kB view details)

Uploaded Python 3

File details

Details for the file video-dl-0.0.17.tar.gz.

File metadata

  • Download URL: video-dl-0.0.17.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for video-dl-0.0.17.tar.gz
Algorithm Hash digest
SHA256 b70050072d96829d8a67e77203aed28de6887a21fbe9e9a690460a7b27be0cae
MD5 337553556c97c723be097fee22837461
BLAKE2b-256 0b1afb4af7d1d51d4b4f566ed1714247a7fdbb9a23709c109cca1b76b19be0ac

See more details on using hashes here.

File details

Details for the file video_dl-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: video_dl-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 59.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for video_dl-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe0bc7ffa86083d8aac0fc48ca43f34d80528f4aebec74711b2a29c29aa7c1b
MD5 b25d508d311cb867fdfab517c2448c30
BLAKE2b-256 418b5267394faf2eae36d83b4f3ce81a0d24074c83945e5674cab22dc2965cd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page