Skip to main content

A Python API for the Porn Site Sex.com/pins

Project description

Sex.com API

Downloads CodeQL Analysis API Tests

Description

Sex API is a Python API dedicated to Sex.com/pins. It allows you to download Pins, fetch information about Pins, Users and Boards. You can also perform a search with filters.

[!IMPORTANT] The Sex API is in violation of the Terms of Services of Sex.com. Usage is on your own risk! This API is related to sex.com/pins. This API does NOT support downloading videos from Sex.com nor video clips from sex.com/pins. The Videos are DRM locked, and the video clips need Javascript to be loaded.

Quickstart

Have a look at the Documentation for more details

  • Install the library with pip install sex_api
  • Or with: pip install git+https://github.com/EchterAlsFake/sex_api for the latest fixes / features
from sex_api.api import Client

client = Client()

# Fetch a Pin
pin = client.get_pin("<URL>")
pin.download("<PATH (Directory)>")

# Print some attributes:
print(pin.name)
print(pin.publish_date) # See Docs for more

# Fetch a User:
user = client.get_user("URL")

# Get users Pins:
pins = user.get_pins()
pins_liked = user.get_liked_pins()

for pin in pins:
    pin.download("<path>")
    # ....... 
    
# The features are nearly endless. See Documentation for more :)

[!NOTE] Sex API can also be run from the command line. Just execute: "sex_api -h" to get started.

Changelog

See Changelog for more details.

Support (Donations)

I am developing all my projects entirely for free. I do that because I have fun and I don't want to charge 30€ like other people do.

However, if you find my work useful, please consider donating something. A tiny amount such as 1€ means a lot to me.

Paypal: https://paypal.me/EchterAlsFake
XMR (Monero): 46xL2reuanxZgFxXBBaoagiEJK9c7bL7aiwKNR15neyX2wUsX2QVzkeRMVG2Cro44qLUNYvsP1BQa12KPbNat2ML41nyEeq

Contribution

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

Pull requests are also welcome.

License

Licensed under the LGPLv3 License
Copyright (C) 2023–2025 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

sex_api-1.3.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

Sex_API-1.3.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file sex_api-1.3.1.tar.gz.

File metadata

  • Download URL: sex_api-1.3.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for sex_api-1.3.1.tar.gz
Algorithm Hash digest
SHA256 2083105142a137ee640c8f5c6160fa750e38aaaee40350a731987180598f8f46
MD5 c531cce3a313056716b336a98f1f2522
BLAKE2b-256 6df42e8d6fadba911cf5e60e35ba984a6008493c72875f9c0884249d2b799b5e

See more details on using hashes here.

File details

Details for the file Sex_API-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: Sex_API-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for Sex_API-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b094efae09644f03f4ac7a7cb4fcfe29af176da5cdafa6853575a2365f1fbbc0
MD5 6097b187208fe843705f3028887aae0c
BLAKE2b-256 ef13a8aceed3b3cee3437ee75ac043a5e43c69edd0a946c435d5e215f09f5d01

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page