Skip to main content

A Python API for the Porn Site spankbang.com

Project description

Spankbang API

Downloads CodeQL Analysis API Tests

Description

Spankbang API is an API for Spankbang. It allows you to fetch information from videos using regexes and requests.

Disclaimer

[!IMPORTANT] Spankbang API is in violation to Spankbang's ToS! If you are the website owner of spankbang.com, contact me at my E-Mail, and I'll take this repository immediately offline. EchterAlsFake@proton.me

[!NOTE] This API was made for my other project Porn Fetch, which is the reason why I keep it so minimal. If you have any features you need, please just open an Issue and I will add that feature to this API. I will also add other features, later but my priority is primarily downloading videos!

Quickstart

Have a look at the Documentation for more details

  • Install the library with pip install spankbang_api
  • Or from git using pip install git+https://github.com/EchterAlsFake/spankbang_api
from spankbang_api import Client, Quality
# Initialize a Client object
client = Client()

# Fetch a video
video_object = client.get_video("<insert_url_here>")

# Get information from videos
video_object.title
video_object.rating
video_object.description
# See docs for more...

# Download the video
video_object.download(quality=Quality.BEST, path="your_output_path")

Changelog

See Changelog for more details.

Contribution

Do you see any issues or having some feature requests? Simply open an Issue or talk in the discussions.

Pull requests are welcome :)

License

Licensed under the LGPLv3 License

Copyright (C) 2023–2024 Johannes Habel

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

spankbang_api-1.3.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

spankbang_api-1.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file spankbang_api-1.3.tar.gz.

File metadata

  • Download URL: spankbang_api-1.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for spankbang_api-1.3.tar.gz
Algorithm Hash digest
SHA256 7e87869ca7651fed09d83c59b5fa7a6a5afec1264fd6bd7d836081293b46d660
MD5 2eba713a426deec9e1227e2ed669d004
BLAKE2b-256 d7759cdf992b195aca1429bec43a16170ef862b86c3e247dd2cfbefcb2d7ed11

See more details on using hashes here.

File details

Details for the file spankbang_api-1.3-py3-none-any.whl.

File metadata

  • Download URL: spankbang_api-1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for spankbang_api-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ca088f65d73f3e3cad57c11a767cdc5afbb233be1f71ac19ee68ab6721af97bb
MD5 d07f381ba9bbef11fdf12931c048b3c7
BLAKE2b-256 5d541a27d07536b5b4b48cfa0bb653ff2b84229a4ce986763c3ccda51c8bae9e

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