-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.ts
47 lines (39 loc) · 1.48 KB
/
test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
// import axios from "axios";
// import * as cheerio from "cheerio";
import { Manga, MangaType } from './src';
// void (async () => {
// const t = await axios("https://ww5.mangakakalot.tv/");
// const $ = cheerio.load(t.data);
// const x = $("#contentstory > div > div.itemupdate");
// x.map((i, el) => {
// if (i == 0) console.log(el.childNodes[0].next);
// });
// })();
// void axios.get("https://toonily.com/").then((res) => {
// const $ = cheerio.load(res.data);
// const wrap_items = $("#loop-content > div > div");
// wrap_items.each((i, e) => {
// const title = $(e)
// .find("div > div.item-summary > div.post-title.font-title > h3 > a")
// .text();
// console.log(title);
// });
// });
// Array.from(
// document.querySelectorAll(
// "body > div.wrap > div > div > div.c-breadcrumb-wrapper > div > div > div > div.c-genres-block.archive-page > div > div.genres__collapse > div > ul > li > a"
// )
// ).map((e) => {
// return {
// name: e.textContent?.trim().split(" (")[0].split("\n")[0],
// path: e.getAttribute("href")?.substring("https://toonily.com".length),
// };
// });
const t = new Manga().build(MangaType.ASURASCANS);
void (async () => {
console.log(await t.getListLatestUpdate());
})();