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: "xvideos_api -h" to get started.

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 also 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

Sex_API-1.1.tar.gz (9.5 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-1.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file Sex_API-1.1.tar.gz.

File metadata

  • Download URL: Sex_API-1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for Sex_API-1.1.tar.gz
Algorithm Hash digest
SHA256 3261b326c8ec5bbfd196c3d4a0253549a75cfa75e83bdef411e83222074171b3
MD5 a05a06a534e55255c486e217012de4b8
BLAKE2b-256 90dfffa9e802779ba6b9724b80f7e3ce983812bbd90d441100d24b8dc78e3de0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Sex_API-1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for Sex_API-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c20b407adf24d774d2e6861ff820991543c3d60e48b3e88e4dcfa649e0e41e
MD5 4ebc98de7a221bcb6583915f2de556aa
BLAKE2b-256 6c462022a41ee2f70f12310c436d6e96c85a037d3489d0416154a67ad9763c31

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