eztv-crawler
TypeScript icon, indicating that this package has built-in type declarations

1.3.6 • Public • Published

🌵 EZTV API AND SCRAPER - for NodeJS

A promised based node module to scrape TV shows, episodes and torrent info from EZTV.

The official API is also implemented incase you want to use that. The functions for the official API are listed below.

  • getTorrentsByImdbId
  • getTorrents

Module was created because popular existing modules dont support TypeScript, are overkill and EZTV's official API is not that great, this package gives you more freedom.

Installation

npm install eztv-crawler

🔥Examples

🚩 getShows

Usage

import { getShows } from 'eztv-crawler'

const shows = await getShows();

Response

[
    {
        "id": 271007,
        "title": "$50K Three Ways"
    }
    // ...
]

🚩 getShow

Usage

import { getShow } from 'eztv-crawler'

const show = await getShow(481);   // By ID (481 = Game of Thrones)
//const show = await getShow('Game of thrones'); // or by name

Response

{
    "title": "Game of Thrones",
    "summary": "Based on the bestselling book series A Song of Ice and Fire by George R.R. Martin, this sprawling new HBO drama is set in a world where summers span decades and winters can last a lifetime. From the scheming south and the savage eastern lands, to the frozen north and ancient Wall that protects the realm from the mysterious darkness beyond, the powerful families of the Seven Kingdoms are locked in a battle for the Iron Throne. This is a story of duplicity and treachery, nobility and honor, conquest and triumph. In the Game of Thrones, you either win or you die.",
    "description": "In the mythical continent of Westeros, several powerful families fight for control of the Seven Kingdoms. As conflict erupts in the kingdoms of men, an ancient enemy rises once again to threaten them all. Meanwhile, the last heirs of a recently usurped dynasty plot to take back their homeland from across the Narrow Sea. —Sam Gray",
    "imdbId": "tt0944947",
    "episodes": [
        {
            "showLink": "https://www.tvmaze.com/episodes/4961/game-of-thrones-1x10-fire-and-blood",
            "title": "Game of Thrones S01E10 2160p UHD BluRay x265-SCOTLUHD [eztv]",
            "magnet": "magnet:?xt=urn:btih:a017ac9bf02de9e36f1f9177bdb60612186b0b0d&dn=Game.of.Thrones.S01E10.2160p.UHD.BluRay.x265-SCOTLUHD%5Beztv.io%5D.mkv%5Beztv%5D&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A80&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969",
            "torrent": "https://zoink.ch/torrent/Game.of.Thrones.S01E10.2160p.UHD.BluRay.x265-SCOTLUHD[eztv.io].mkv.torrent",
            "size": 10383083438,    // bytes
            "released": "1 year",
            "seeds": 0
        }
        // ...
}

🚩 search

Usage

import { search } from 'eztv-crawler'

const result = await search('game of thrones s01e01');

Response

[
    {
        "showLink": "/shows/481/game-of-thrones/",
        "title": "Game of Thrones S01E01 2160p UHD BluRay x265-SCOTLUHD [eztv]",
        "magnet": "magnet:?xt=urn:btih:e4aae367b822794d37d8cafd5a628db985d65fb4&dn=Game.of.Thrones.S01E01.2160p.UHD.BluRay.x265-SCOTLUHD%5Beztv.io%5D.mkv%5Beztv.re%5D&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A80&tr=udp%3A%2F%2Fglotorrents.pw%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969",
        "torrent": "https://zoink.ch/torrent/Game.of.Thrones.S01E01.2160p.UHD.BluRay.x265-SCOTLUHD[eztv.io].mkv.torrent",
        "size": 12605729013,
        "released": "1 year",
        "seeds": 3
    }
    // ...
]

🚩 getTorrents (API)

Usage

import { getTorrents } from 'eztv-crawler'

const result = await getTorrents();

Response

{
    "torrents_count": 551028,
    "limit": 30,
    "page": 5,
    "torrents": [
        {
            "id": 1775044,
            "hash": "70ab3fe6c670992bca7781f996b740f2863aae5e",
            "filename": "Super.PupZ.S01.WEBRip.x265-ION265[eztv.re]",
            "episode_url": "https://eztv.wf/ep/1775044/super-pupz-s01-webrip-x265-ion265/",
            "torrent_url": "https://zoink.ch/torrent/Super.PupZ.S01.WEBRip.x265-ION265[eztv.re].torrent",
            "magnet_url": "magnet:?xt=urn:btih:70ab3fe6c670992bca7781f996b740f2863aae5e&dn=Super.PupZ.S01.WEBRip.x265-ION265%5Beztv%5D&tr=udp://tracker.coppersurfer.tk:80&tr=udp://glotorrents.pw:6969/announce&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://tracker.opentrackr.org:1337/announce&tr=udp://exodus.desync.com:6969",
            "title": "Super PupZ S01 WEBRip x265-ION265 EZTV",
            "imdb_id": "18469966",
            "season": "1",
            "episode": "0",
            "small_screenshot": "//ezimg.ch/thumbs/super-pupz-s01-webrip-x265-ion265-small.jpg",
            "large_screenshot": "//ezimg.ch/thumbs/super-pupz-s01-webrip-x265-ion265-large.jpg",
            "seeds": 19,
            "peers": 11,
            "date_released_unix": 1648732077,
            "size_bytes": "1819639174"
        },
        // ...
    ]
}

🚩 getTorrentsByImdbId (API)

Usage

import { getTorrents } from 'eztv-crawler'

const result = await getTorrentsByImdbId('tt6048596');

Response

{
    "imdb_id": "6048596",   // if not match found this property wont return with the result
    "torrents_count": 129,
    "limit": 30,
    "page": 1,
    "torrents": [
        {
            "id": 1727876,
            "hash": "f6b983c6dc14fccd0741790cc3fb51fbf5d8c932",
            "filename": "The.Sinner.S04E08.1080p.HEVC.x265-MeGusta[eztv.re].mkv",
            "episode_url": "https://eztv.wf/ep/1727876/the-sinner-s04e08-1080p-hevc-x265-megusta/",
            "torrent_url": "https://zoink.ch/torrent/The.Sinner.S04E08.1080p.HEVC.x265-MeGusta[eztv.re].mkv.torrent",
            "magnet_url": "magnet:?xt=urn:btih:f6b983c6dc14fccd0741790cc3fb51fbf5d8c932&dn=The.Sinner.S04E08.1080p.HEVC.x265-MeGusta%5Beztv%5D&tr=udp://tracker.coppersurfer.tk:80&tr=udp://glotorrents.pw:6969/announce&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://tracker.opentrackr.org:1337/announce&tr=udp://exodus.desync.com:6969",
            "title": "The Sinner S04E08 1080p HEVC x265-MeGusta EZTV",
            "imdb_id": "6048596",
            "season": "4",
            "episode": "8",
            "small_screenshot": "//ezimg.ch/thumbs/the-sinner-s04e08-1080p-hevc-x265-megusta-small.jpg",
            "large_screenshot": "//ezimg.ch/thumbs/the-sinner-s04e08-1080p-hevc-x265-megusta-large.jpg",
            "seeds": 3,
            "peers": 0,
            "date_released_unix": 1638452270,
            "size_bytes": "479545240"
        },
        // ...
    ]
}

Package Sidebar

Install

npm i eztv-crawler

Weekly Downloads

9

Version

1.3.6

License

none

Unpacked Size

31.9 kB

Total Files

10

Last publish

Collaborators

  • redbullzuiper