YTS
Class for scraping movies from https://yts.ag/.
Constructor Summary
Public Constructor | ||
public |
constructor(name: String) Create a yts object for movie content. |
Member Summary
Public Members | ||
public |
The name of the torrent provider. |
Private Members | ||
private |
The helper object for adding movies. |
|
private |
The request object with added defaults. |
|
private |
The util object with general functions. |
Method Summary
Public Methods | ||
public |
Returns a list of all the inserted torrents. |
Private Methods | ||
private |
_formatPage(data: Object): Object Format data from movies. |
|
private |
_getMovies(): Array All the found movies. |
|
private |
_getOnePage(page: Integer, retry: Boolean): Promise Get formatted data from one page. |
|
private |
_getTotalPages(retry: Boolean): Promise Get the total pages to go through. |
Public Constructors
Public Members
Private Members
Public Methods
Private Methods
private _formatPage(data: Object): Object source
Format data from movies.
Params:
Name | Type | Attribute | Description |
data | Object | Data about the movies. |