This repository has been archived on 2024-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
HentaiSnatcher/src/base/class/Scrapper.ts

30 lines
651 B
TypeScript
Raw Normal View History

2021-10-21 01:10:27 +03:00
/**
* The base class of the scrappers, any of the website scrappers must extend this class
*/
class Scrapper {
/**
* An array of all of the logs
*/
public logs: Array<any> = [];
/**
* Get the details of a specific post
* @param url The URL to the post, this must be the actual page which contains the image, tags, etc...
*/
public async getPostDetails( url: string ): Promise<any> {
return {};
}
/**
* Get a list of posts from the mentioned page
* @param url
* @returns
*/
public async getPostsFrompage( url: string ): Promise<any> {
return [];
}
}