Skip to main content

Erome

A lightweight, robust Python wrapper for Erome.com, supporting both synchronous and asynchronous operations.

PyPI version License: MIT

Features

  • Full API Coverage: Access explore, albums, searches, and user profiles.
  • Sync & Async: Choose the client that fits your workflow.
  • Pydantic Models: All responses are typed and validated using Pydantic.
  • Resilient Parsing: Handles edge cases and changes in Erome's DOM structure.

Installation

pip install erome

Quick Start

Synchronous Client

from erome import Client

client = Client()

# Get featured albums from explore
albums = client.get_explore()
for album in albums:
    print(f"Album: {album.name} (ID: {album.id})")

# Get specific album details
album_id = albums[0].id.split('/')[-1]
album_data = client.get_album(album_id)
print(f"Title: {album_data.title}")
print(f"Videos: {len(album_data.contents['videos'])}")

Asynchronous Client

import asyncio
from erome import AsyncClient

async def main():
    client = AsyncClient()
    
    # Search for albums
    results = await client.get_search("milf")
    print(f"Found {len(results)} search results")
    
    # Get user profile
    profile = await client.get_profile("TheRealWolf")
    print(f"User: {profile.username}, Albums: {len(profile.albums)}")

if __name__ == "__main__":
    asyncio.run(main())

Available Methods

Both Client and AsyncClient share the same interface (except for await in async):

  • get_explore(page=1): Fetch featured albums from the explore page.
  • get_album(album_id): Get full details for an album, including media links.
  • get_related_albums(album_id): Get albums related to the specified one.
  • get_search(query, page=1): Search for albums by keyword.
  • get_profile(username, page=1): Fetch user profile information and their albums.

Models

Responses are returned as Pydantic models:

  • AlbumCard: Basic info used in lists (explore, search, profile).
  • AlbumResponse: Detailed album information including media links (MediaItem).
  • ProfileResponse: User profile information and a list of AlbumCards.
  • MediaItem: Direct links to images or videos with metadata (duration, captions).

Requirements

  • Python 3.11+
  • httpx
  • beautifulsoup4
  • pydantic

License

MIT

GitHub

https://github.com/dankaristic/erome

Metadata

Release files for erome 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erome 0.1.1
File Size Uploaded Provenance Actions
erome-0.1.1.tar.gz 7.0 kB Without provenance Details for erome-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for erome 0.1.1
File Interpreter ABI Platform Actions
erome-0.1.1-py3-none-any.whl Python 3 none any Details for erome-0.1.1-py3-none-any.whl

Total release size: 13.8 kB

Release files / erome-0.1.1.tar.gz

Download URL erome-0.1.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3322e56da46217c32547f6a1004c1b55a61c76b02057979720fb54e98b26fb1
BLAKE2b-256 checksum
How to use checksums
fc861df90b427dbbd8189abd89cde740f8c76b51ebe457d910cb040b266c8e0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / erome-0.1.1-py3-none-any.whl

Download URL erome-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0f62295cd96ba20883484547a58becfdcd7d5cb386ad662c93bbd13a18f81ba
BLAKE2b-256 checksum
How to use checksums
aab39fabaac0d24ce5b4577ac8bb9e4d363340f913be20d8a8a38d566dbdf5a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for erome 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page