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.

[!CAUTION] Spankbang is very strict about rate limiting. This API will RESPECT all 429 errors and wait properly. Don't try to bypass this and don't ask me to bypass it. I won't.

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

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
# 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="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.9.tar.gz (11.1 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.9-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spankbang_api-1.9.tar.gz
Algorithm Hash digest
SHA256 a63b02f62734ebf2dca1d47a29a7d1d69bd24ba3de0d5ea1a06d29665d1aedab
MD5 d10d2473d0769228005277ef60159f13
BLAKE2b-256 67648072fee78cef06fdfb33d0cb08c6984842a66e9a61ca4d5a4afe5560b15f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spankbang_api-1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d1dabf957681893c97555da793375c734ae5ff7713df02cad712fffe77b2f1cd
MD5 7e895bfe99743cfac74a074de6aff97e
BLAKE2b-256 ac5d06e7dd6f6775649c2f7d2c4ebdccd2b6f2bb4ace54beb25b94c2cfbfcb8c

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