A lightweight, robust Python wrapper for Erome.com, supporting both synchronous and asynchronous operations.
Project description
Erome
A lightweight, robust Python wrapper for Erome.com, supporting both synchronous and asynchronous operations.
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 ofAlbumCards.MediaItem: Direct links to images or videos with metadata (duration, captions).
Requirements
- Python 3.11+
httpxbeautifulsoup4pydantic
License
MIT
GitHub
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file erome-0.1.1.tar.gz.
File metadata
- Download URL: erome-0.1.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3322e56da46217c32547f6a1004c1b55a61c76b02057979720fb54e98b26fb1
|
|
| MD5 |
2c0c3e0363fa6a812f88031df633b058
|
|
| BLAKE2b-256 |
fc861df90b427dbbd8189abd89cde740f8c76b51ebe457d910cb040b266c8e0a
|
File details
Details for the file erome-0.1.1-py3-none-any.whl.
File metadata
- Download URL: erome-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0f62295cd96ba20883484547a58becfdcd7d5cb386ad662c93bbd13a18f81ba
|
|
| MD5 |
123e6778d4fa3f627338716ab824365b
|
|
| BLAKE2b-256 |
aab39fabaac0d24ce5b4577ac8bb9e4d363340f913be20d8a8a38d566dbdf5a2
|