https://github.com/dnascanner/phdl
https://github.com/dnascanner/phdl
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnascanner/phdl
- Owner: DNAScanner
- License: wtfpl
- Created: 2024-10-13T00:26:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-25T00:28:14.000Z (11 months ago)
- Last Synced: 2025-08-25T03:18:44.190Z (11 months ago)
- Language: TypeScript
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PornHub API
This is a Deno module allowing you to interact with the famous adult website https://pornhub.com.
## Disclaimer
Using the API or the website itself is strictly prohibited for people under the age of 18. I do not encourage anyone to use any of such sites. This module is for educational purposes only.
## Example usage
```ts
import {generateAccountUrl, getAccountData} from "jsr:@dnascanner/phdl";
// Get basic account data
const accountData = await getAccountData(generateAccountUrl("mira-david"));
// Now, get an array of all videos on page 2
const videos = await accountData.getVideos(2);
// Then, log the url to the best stream of the first video
const details = await videos[0].details();
console.log(details.streams[0].url);
```