A Python API for the Porn Site spankbang.com
Project description
Spankbang API
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.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 + title.mp4")
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spankbang_api-1.0.1.tar.gz
.
File metadata
- Download URL: spankbang_api-1.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6840acc9f4346cf6cce5847b5eb9fddccbe80d7c9c57ffea67e5531388c52ab7 |
|
MD5 | c0fc9f66392ffd8a2c59365d9de3a5bd |
|
BLAKE2b-256 | 6091665e515b0e1c1e198404d91503facfa554b9acf91e4f3ae307dcc435298f |
File details
Details for the file spankbang_api-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: spankbang_api-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 910ce460aefc5894ffc1794aaab3b110bd477f057206cff9beea434787a3e920 |
|
MD5 | 8cc670a26ea888ff06b31bbe19dc113a |
|
BLAKE2b-256 | 4130f98931899f48e61af240cf305ebeb8941524e36b2b0bf7c766c106982bcf |