Skip to main content

A Python API for the Porn Site HQPorner.com

Project description

HQPorner API

Table of contents

Description

HQPorner API is an API written for the Porn site hqporner.com
It can retrieve data by extracting them from the HTML code
with Beautifulsoup and requests.

Please note that web scarping isn't allowed in most cases!
Consider using a VPN when using this API

Installation

# Installing via PyPi

pip install --upgrade hqporner_api

# Installing from GitHub to get latest version

pip install git+https://github.com/EchterAlsFake/hqporner_api.git

Usage

Import the package:

from hqporner_api.api import API

Arguments

  • URL: Must be URL of hqporner.com ending with .html

  • Quality:

    • 360 : Returns 360p quality video
    • 720 : Returns 720p quality video
    • 1080 : Returns 1080p quality video
    • 2160 : Returns 2160p quality video
  • Path : Where the video should be stored in

Get the title of the video

title = API().extract_title(url)

Get the actress of the video

actress = API().extract_actress(url)

Get direct download URLs

url = API().get_direct_url(url, quality) # Will return URL for given quality

Download the video

API().download(url, qualit, path) # Downloads the video with a tqdm progressbar

Note: Download speeds can be slow if the CDN Network is slow.

Get length of the video

API().get_length(url) # Returns video length

Get publish date of the video

API().get_publish_date(url) # Returns the publish date as a string

License

Licensed under the LGPLv3 License

Copyright (C) 2023 EchterAlsFake

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

hqporner_api-0.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

hqporner_api-0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file hqporner_api-0.2.tar.gz.

File metadata

  • Download URL: hqporner_api-0.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for hqporner_api-0.2.tar.gz
Algorithm Hash digest
SHA256 2bd53ee39600e1cb86bff24be209e542e9b50d3b382f79549c1708396a4729ec
MD5 41d84d2b659b0538f5e2020c2546e1dd
BLAKE2b-256 1191d5d5df7c713edc25c43a663b7ad9be3f125226b163f0dac8b1f806730a2a

See more details on using hashes here.

File details

Details for the file hqporner_api-0.2-py3-none-any.whl.

File metadata

  • Download URL: hqporner_api-0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for hqporner_api-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bff8be093cfd0bf812e589a247a3a9a21e9317231b212e43f2f2bf1950c11992
MD5 7efd9e6e3749b19625dcea51556564b1
BLAKE2b-256 428d476c70ce970b0c40b371b7217417d4ed8b7dbdcd64f85bf5a3eb6faee15e

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