Socket
Book a DemoInstallSign in
Socket

@hydra2/scraper

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hydra2/scraper

A simple scraper by hydra.

1.0.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

#

🎬 SCRAPER DOWNLOADER 1.0.0

Scraper downloader easily via simple API by hydra.
Auto-updated on error fixes — join our channel for latest info!

📢 Stay Connected

📡 Hydra System Channel
Join to get the latest updates, changelogs, and more.

  • 🔗 Join Channel
  • 📞 Contact Admin

⚙️ Installation

Install using npm:

npm install @hydra2/scraper

Usage

const { 
  search,
  ytmp3,
  ytmp4,
  transcript,
  pindl,
  tiktoks,
  pinterest,
  githubStalk,
  tiktokStalk,
  ytStalk,
  GoogleImage,
  ttdl,
  igdl,
  genshinStalk,
  mfdl,
  igStalk,
  fbPhoto,
  ttdl2,
  fbVideo,
  lyrics } = require('@hydra2/scraper');

Quality Available

const audio = [96, 128, 192, 256, 320];
const video = [360, 480, 720, 1080];

Download Youtube Audio (MP3) 🎧

const url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID';
const quality = "128";

ytmp3(url, quality)
  .then(result => {
    if (result.status) {
      console.log('Download Link:', result.download);
      console.log('Metadata:', result.metadata);
    } else {
      console.error('Error:', result.result);
    }
  });

// or use default quality (128)
// ytmp3(url)

Download Youtube Video (MP4) 📹

const url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID';
const quality = "360";

ytmp4(url, quality)
  .then(result => {
    if (result.status) {
      console.log('Download Link:', result.download);
      console.log('Metadata:', result.metadata);
    } else {
      console.error('Error:', result.result);
    }
  });

// Base Ytmp4 https://github.com/ShirokamiRyzen
// or use default quality (360)
// ytmp4(url)

Search Youtube 🔍

const query = 'your search term';

search(query)
    .then(result => {
        if (result.status) {
            console.log('Search Results:', result.results);
        } else {
            console.error('Error:', result.result);
        }
    });

Tiktok Downloader

const url = 'https://www.tiktok.com/@username/video/1234567890';

ttdl(url)
  .then(result => {
    if (result.status) {
      console.log('Video:', result.data.video);
      console.log('Audio:', result.data.audio);
      console.log('Cover:', result.data.cover);
    } else {
      console.error('Error:', result.message);
    }
  });

Playmp3 & Playmp4

const query = 'Lagu galau';

playmp3(query)
  .then(result => {
    if (result.status) {
      console.log('Download Link:', result.download);
      console.log('Metadata:', result.metadata);
    } else {
      console.error('Error:', result.message);
    }
  });

playmp4(query)
  .then(result => {
    if (result.status) {
      console.log('Download Link:', result.download);
      console.log('Metadata:', result.metadata);
    } else {
      console.error('Error:', result.message);
    }
  });

Pinterest Download

const link = 'https://pin.it/63p8EvKYl';

pindl(link)
  .then(result => {
    if (result.status) {
      if (result.isVideo) {
        console.log('Video URL:', result.video);
      } else {
        console.log('Image URL:', result.image);
      }
      console.log('Info:', result.info);
    } else {
      console.error('Error:', result.mess);
    }
  });

Documentation

🧑‍💻 Author

Hydra License: MIT

Powered by Hydra System • Fast • Simple • Efficient

Keywords

youtube

FAQs

Package last updated on 02 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.