Skip to main content

A light pornhub downloading interface

Project description

PH Fetch

A light python interface for fetching and downloading videos from Pornhub.

Usage

Initialisation:

import phfetch

# Initialise with a video url
video = phfetch.video( url = 'https://...' )

# Or a viewkey token
video = phfetch.video( key = 'xxxxxxxxxx' )

Available video infos:

>>> video.title # The Pornhub title of the video
>>> video.available # Whether the video is available to view (because deleted or not disponible in country)
>>> video.duration # The video duration (in seconds)
>>> video.hotspots # The list of hotspots of the video

To download a video:

# Using an absolute or relative file path 
video.download( path = 'my-video.mp4' )

# Using a directory path (the file name will be the video title)
video.download( path = 'my-dir/' )

# Using a specific quality
video.download( path = './', quality = 'best')
# Possible quality values:
# best, middle, worst or an int
# Can also be a constant from pyhub.Quality, e.g:

video.download( path = './', quality = pyhub.Quality.BEST )

An example UI implementation can be found in the ui.py file: image

Installation

Minimum python version: 3.11 Dependencies: requests

Install using pip:

pip install git+https://github.com/Egsagon/pornhub-fetch.git

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

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

Source Distribution

phfetch-1.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

phfetch-1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file phfetch-1.1.tar.gz.

File metadata

  • Download URL: phfetch-1.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for phfetch-1.1.tar.gz
Algorithm Hash digest
SHA256 b9d87fb4ac443df28bc8c6a1e82dc6b651fbb6627ccfb6e9f2810007cc3a0a15
MD5 2f20830aa89b122f8ad17a6553caad3b
BLAKE2b-256 a70f11512fb5e53241cb5df2a854bfa90778258218c0e1fb345bf43d107f4cdf

See more details on using hashes here.

File details

Details for the file phfetch-1.1-py3-none-any.whl.

File metadata

  • Download URL: phfetch-1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for phfetch-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b20c09054a8dd564a68146bb5d0bae880ee0e18977fb4e73090c2f130a97fe6
MD5 b4157c50a05fd499cbf823e7bc004d44
BLAKE2b-256 2981433d9749b958f3427902c8db7ea62e20cacfc8c9bd64d11c1b20eb36f42e

See more details on using hashes here.

Supported by

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