YouTube examples

This commit is contained in:
killer069
2021-08-13 14:58:57 +05:30
parent 04770cc929
commit 06cc44d485
7 changed files with 93 additions and 27 deletions

View File

@@ -1,13 +1,10 @@
import { Video } from "../classes/Video";
import { PlayList } from "../classes/Playlist";
import { Channel } from "../classes/Channel";
import { RequestInit } from "node-fetch";
import fs from 'fs'
export interface ParseSearchInterface {
type?: "video" | "playlist" | "channel" | "all";
limit?: number;
requestOptions?: RequestInit;
}
export function ParseSearchResult(html :string, options? : ParseSearchInterface): (Video | PlayList | Channel)[] {