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.

Features

  • Fetch Pin information
  • Download Pins
  • Fetch users
  • Fetch Comments
  • Fetch Boards
  • Asynchronous

Network Features

  • HTTP 2.0 / HTTP 3.0
  • Browser impersonation
  • Custom JA3
  • All proxy types
  • Proxy authentication
  • Speed Limit
  • DNS over HTTPS

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 import Client

async def do_something():
    
    client = Client()
    
    # Fetch a Pin
    pin = await client.get_pin("<URL>")
    await pin.download("<PATH (Directory)>")
    
    # Print some attributes:
    print(pin.name)
    print(pin.publish_date) # See Docs for more
    
    # Fetch a User:
    user = await client.get_user("URL")
    
    # Get users Pins:
    pins = user.get_pins()
    async for pin in pins:
        print(pin.name)
    
    pins_liked = user.get_liked_pins()
    
    async for pin in pins_liked:
        print(pin.name)
    
    async 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): 42XwGZYbSxpMvhn9eeP4DwMwZV91tQgAm3UQr6Zwb2wzBf5HcuZCHrsVxa4aV2jhP4gLHsWWELxSoNjfnkt4rMfDDwXy9jR

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–2026 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-2.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

sex_api-2.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sex_api-2.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sex_api-2.0.tar.gz
Algorithm Hash digest
SHA256 fee15fda16517c22dd427f44f94af0faf64643f70d90480d3e7e9250f69a0ea1
MD5 62e8542bf975f0e73491b8a94865297a
BLAKE2b-256 dff0c4d695ecc77f45679302d2c85d92f2f2bf5991e172b9a8f4f24fb7f5a36e

See more details on using hashes here.

File details

Details for the file sex_api-2.0-py3-none-any.whl.

File metadata

  • Download URL: sex_api-2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sex_api-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7426b436724b75e086e41e5798196d9344cdc2f98472ff9557bb3d9491fee171
MD5 ee8f4429126437d1e5b1360e8c966e5d
BLAKE2b-256 5bc226c349d6d6077a13cd03d125db406d2f1f154598e77b5b579274453709df

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