npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

xhamster-scraper

v1.0.0

Published

A high-performance media processing optimization scraper module context engineered for structured data catalog extraction layouts.

Readme

🕷️ xhamster-scraper

npm version npm downloads License: ISC Cheerio

A highly robust media indexing parser workflow designed to query specific properties, extract manifest links, and download streaming data segments cleanly from xHamster.

Report Bug · Request Feature


✨ Features

  • 🏷️ Clean Selector Mapping: Efficiently tracks thumb paths, structural durations, tracking view counts, and video layouts.
  • 🛡️ Custom Header Optimization: Mimics mobile tracking structures to reliably parse content without encountering firewall blocks.
  • 🔗 HLS Manifest Breakdown: Extracts and formats raw underlying stream properties natively into selectable quality structures.

📥 Installation

Install using your project's default package manager client terminal environment:

npm install xhamster-scraper




📈 **Example code Search**
```js
const { xhamsterSearch } = require('xhamster-scraper');

async function run() {
    try {
        console.log("Searching matching targets...");
        const results = await xhamsterSearch('funny cat', 20);
        
        console.log("\n--- Search Query Results ---");
        console.log(JSON.stringify(results, null, 20));
    } catch (error) {
        console.error("Search module error:", error.message);
    }
}

run();

📈 Output Search

[
          {
                    "title": "Marvel - Black Cat VS Venom Special (Animation with Sounds)",
                    "url": "https://xhamster.com/videos/marvel-black-cat-vs-venom-special-animation-with-sounds-xhyki4P",
                    "thumb": "https://ic-vt-nss.xhpingcdn.com/a/Y2NmNWU5NzQ5ZTlkZGZjYmJjM2U4NGUxNzkyNTU3YTA/s(w:640,h:360),webp/023/999/982/1280x720.c.jpg.v1699975180",
                    "preview": "https://thumb-v2.xhpingcdn.com/a/SuYJ1TrptKSELT5-Uao7Ew/023/999/982/526x298.94.3.4.t.av1.mp4",
                    "duration": "07:52",
                    "views": "1.2M views"
          },
          {
                    "title": "Marvel - Black Cat VS Venom Special (Animation with Sounds)",
                    "url": "https://xhamster.com/videos/marvel-black-cat-vs-venom-special-animation-with-sounds-xhyki4P",
                    "thumb": "",
                    "preview": "",
                    "duration": "",
                    "views": "1.2M views"
          }
]

📈 Example code DL

const { xhamsterDownload } = require('xhamster-scraper');

async function run() {
    try {
        const url = 'https://xhamster.com/videos/very-sexy-young-pussy-5602698';
        console.log("Analyzing page layout data structure...");
        
        const metadata = await xhamsterDownload(url);
        console.log("\n--- Structural Extraction Result ---");
        console.log(JSON.stringify(metadata, null, 2));
    } catch (error) {
        console.error("Meta parse exception:", error.message);
    }
}

run();

📈 Output Dl

{
  "title": "Video Title Asset",
  "thumb": "https://images-thumb.xhcdn.com/videos/",
  "duration": "12:45",
  "views": 15420,
  "download": {
    "720p": {
      "quality": "720p",
      "url": "https://hls-stream-link.mp4",
      "format": "hls"
    }
  }
}