JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 74
  • Score
    100M100P100Q64518F
  • License MIT

A simple scraper.

Package Exports

  • hydra_scraper
  • hydra_scraper/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hydra_scraper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#

🎬 SCRAPER DOWNLOADER 1.0.2

Scraper downloader easily via simple API.
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.


⚙️ Installation

Install using npm:

npm install hydra_ytdl

Usage

const { 
  ttdl,
  search,
  playmp3,
  playmp4,
  ytmp3,
  ytmp4,
  transcript,
  pindl } = require('hydra_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