Momoya
A Python package for extracting AI-generated images and videos from various platforms.
Features
- Extract AI-generated images and videos with associated metadata
- Command-line interface for easy usage
- Multiple search methods: by content ID or by text query
Currently Supported Platforms
- Sora AI: Extracts images/videos and metadata using gen_id or text query
Installation
# Install the package
pip install momoya
Usage
Command Line Interface
The package provides a command-line interface for easy usage:
# Set your authentication token (recommended)
export MOMOYA_SORA_AUTH_TOKEN="your_auth_token_here"
# Extract content from Sora using generation ID
momoya sora --gen-id gen_01jt5veqacf4tsvcwa76kb908m
# Search for content using a text query
momoya sora --query "selfie with a dog"
# Save to a specific directory
momoya sora --query "space exploration" --output-dir my_downloads
# Limit the number of results
momoya sora --query "sunset beach" --limit 10
# Skip saving metadata
momoya sora --gen-id gen_01jt5veqacf4tsvcwa76kb908m --no-metadata
Python API
You can also use the package in your Python code:
import asyncio
from momoya.extractors.sora_extractor import SoraExtractor
async def download_sora_content():
# Initialize the extractor
extractor = SoraExtractor(
auth_token="your_auth_token_here",
download_dir="downloads"
)
# Example 1: Download content by generation ID
gen_id = "gen_01jt5veqacf4tsvcwa76kb908m"
downloaded = await extractor.run(content_id=gen_id, save_metadata=True)
print(f"Downloaded {downloaded} items using generation ID")
# Example 2: Search and download content by text query
query = "abstract art in vibrant colors"
downloaded = await extractor.run(
query=query,
save_metadata=True,
limit=5, # Limit to 5 results
)
print(f"Downloaded {downloaded} items using text query")
# Run the async function
asyncio.run(download_sora_content())
Adding New Extractors
The package is designed to be easily extensible with new extractors for different AI platforms:
- Create a new extractor class in the
momoya/extractorsdirectory - Implement the
BaseExtractorinterface - Add the new extractor to the CLI in
momoya/cli.py
Authentication
Most AI platforms require authentication to access their platforms (Bearer token)
License
MIT
Metadata
Release files for momoya 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| momoya-1.1.0.tar.gz | 13.1 kB | Without provenance | Details for momoya-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| momoya-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for momoya-1.1.0-py3-none-any.whl |
Total release size: 25.7 kB
Release files / momoya-1.1.0.tar.gz
| Download URL | momoya-1.1.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15af3bdaaa0124571a8b4ef5c51b972010a43b6b44e7dfa1b059fdf869d24e75
|
|
BLAKE2b-256 checksum How to use checksums |
2b0c06a97018a0d71b74309f11f5c1d110845b1c3e7998910da117642e604baf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / momoya-1.1.0-py3-none-any.whl
| Download URL | momoya-1.1.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98092198b918fc8eb368ae0d45f39694d35b888788e08a88a12218792b212812
|
|
BLAKE2b-256 checksum How to use checksums |
b6d7e2c810e22087e99d96b764b5faefa79a1466afab9b3d2f10b4fd6d03dfec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for momoya 1.1.0
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.