A library that helps downloading videos from bitchute.com
Project description
PyChute
A library that helps download videos from BitChute website
Installation:
pip install pychute
How to use:
from pychute import PyChute
url = "bitchute url"
pc = PyChute(url=url)
pc.download()
Additional features:
Progress callback
If you need to get progress like percentage or download speed, you can create a function and pass as a parameter in the download method.
import time
from pychute import PyChute
start_time = time.time()
def show_progress(count, block_size, total_size):
# progress percentage
progress = min(1.0, float(count * block_size) / total_size)
print("Progress:", progress)
# download speed
elapsed_time = time.time() - start_time
if elapsed_time > 0:
speed = (count * block_size) / (1024 * elapsed_time) # speed in KB/s
print(f'Download speed: {speed:.2f} KB/s')
url = "bitchute url"
pc = PyChute(url=url)
pc.download(on_progress_callback=show_progress)
Filename
You can pass filename as a parameter in the form of a string to specify download location.
Using download method without the filename parameter will save the file to where your script is located.
from pychute import PyChute
url = "bitchute url"
pc = PyChute(url=url)
output_path = f"D:\\Downloads/{pc.title()}"
pc.download(filename=output_path)
Other data
Apart from downloading, you can access other data about BitChute video:
from pychute import PyChute
url = "bitchute url"
pc = PyChute(url=url)
# video title
print(pc.title())
# channel name
print(pc.channel())
# video publish date
print(pc.publish_date())
# video duration
print(pc.duration())
# subscriptions number
print(pc.subscriptions())
# video likes
print(pc.likes())
# video views
print(pc.views())
# file size in bytes
print(pc.filesize())
# description
print(pc.description())
# thumbnail image
print(pc.thumbnail())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pychute-0.1.5.tar.gz.
File metadata
- Download URL: pychute-0.1.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd707d57b47b772f495a996e91644f6770afe6b0b32002218cca6ece5f640c78
|
|
| MD5 |
e7d41eb8d422e3d656107464b9a7f2bf
|
|
| BLAKE2b-256 |
e4a88cbd3e1c3de58f4072efd881fe172a26ace635508694bf4bd2e63eab4471
|
File details
Details for the file pychute-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pychute-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40da29f12c437ec1d68198dcbeefd2ec3c1696ec77578cfc675876eeaf98071c
|
|
| MD5 |
b0974a0dd7366780a8ccb472505341bb
|
|
| BLAKE2b-256 |
61007bd5f903391644664aa9e1b0a760560e27428c25bf43ccf0ec35c3ba7592
|