Home Manual Reference Source Test Repository
import Scraper from 'popcorn-api/src/scraper.js'
public class | source

Scraper

Class for scraping movies and shows.

Constructor Summary

Public Constructor
public

Create a scraper object.

Method Summary

Public Methods
public

scrape()

Initiate the scraping.

Private Methods
private

Start scraping from EZTV.

private

Start anime scraping from ExtraTorrent.

private

Start movie scraping from ExtraTorrent.

private

Start show scraping from ExtraTorrent.

private

Start scraping from HorribleSubs.

private

Start scraping from KAT.

private

Start movie scraping from KAT.

private

Start show scraping from KAT.

private

Start scraping from Nyaa.

private

Start scraping from YTS.

Public Constructors

public constructor(debug: Boolean) source

Create a scraper object.

Params:

NameTypeAttributeDescription
debug Boolean
  • nullable: true

Debug mode for extra output.

Public Methods

public scrape() source

Initiate the scraping.

Private Methods

private _scrapeEZTVShows(): Show[] source

Start scraping from EZTV.

Return:

Show[]

A list of all the scraped shows.

private _scrapeExtraTorrentAnime(): Anime[] source

Start anime scraping from ExtraTorrent.

Return:

Anime[]

A list of all the scraped movies.

private _scrapeExtraTorrentMovies(): Movie[] source

Start movie scraping from ExtraTorrent.

Return:

Movie[]

A list of all the scraped movies.

private _scrapeExtraTorrentShows(): Show[] source

Start show scraping from ExtraTorrent.

Return:

Show[]

A list of all the scraped shows.

private _scrapeHorribleSubsAnime(): Anime[] source

Start scraping from HorribleSubs.

Return:

Anime[]

A list of all the scraped anime.

private _scrapeKATAnime(): Anime[] source

Start scraping from KAT.

Return:

Anime[]

A list of all the scraped anime.

private _scrapeKATMovies(): Movie[] source

Start movie scraping from KAT.

Return:

Movie[]

A list of all the scraped movies.

private _scrapeKATShows(): Show[] source

Start show scraping from KAT.

Return:

Show[]

A list of all the scraped shows.

private _scrapeNyaaAnime(): Anime[] source

Start scraping from Nyaa.

Return:

Anime[]

A list of all the scraped anime.

private _scrapeYTSMovies(): Movie[] source

Start scraping from YTS.

Return:

Movie[]

A list of all the scraped movies.