Skip to main content

A library that helps downloading videos from bitchute.com

Project description

PyChute

PyPI - Downloads

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


Download files

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

Source Distribution

pychute-0.1.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

pychute-0.1.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pychute-0.1.4.tar.gz.

File metadata

  • Download URL: pychute-0.1.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pychute-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9db400384f7285185b2310de5a4b94289f2bd2c81bec356dce52b37b6a628674
MD5 f36891d5325e5551c7081ac66dff478b
BLAKE2b-256 116a598b796c29081aec60925a683f6fa720610c6aa7798dd380dea660e00a6d

See more details on using hashes here.

File details

Details for the file pychute-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pychute-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pychute-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 48a78f1061ace072ca3307571877c9e322d5b4bf311268e4c1a2f178f7132916
MD5 15551143ed528b4cbcdab6475f23e781
BLAKE2b-256 abe233a41504a5ab58d04d3077a38df2c371023d0e96ad2634c0a75c1f6aaf5e

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