Derfirm/pornhub-api — reverse-engineered prompt
Reverse engineered prompt
Build me a small Python library that acts as an unofficial client for Pornhub’s public data, similar to a clean API wrapper.
I want someone using it to be able to install it with pip, create a simple client, search videos by keyword, ordering, time period, tags, or category, get details for a single video by ID, check if a video is active, list stars, categories, and tags, and loop through results easily. The returned data should feel typed and easy to work with, not raw messy responses.
Please include both a normal synchronous version and optional async support using common Python HTTP backends. Add simple examples showing basic search, fetching one video, listing tags and categories, and using the async client. Keep the code organized as a real package with tests and packaging config so it can be published later. Look up current docs online if you need to.
Want more depth? Deep Reverse