{"size": 465, "ext": "js", "max_stars_repo_path": "test/4anime/download.js", "max_stars_repo_name": "zyrouge/anime-ext", "max_stars_repo_stars_event_min_datetime": "2021-06-12T10:28:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-02T17:33:05.000Z", "max_issues_repo_path": "test/4anime/download.js", "max_issues_repo_name": "zyrouge/anime-ext", "max_issues_repo_issues_event_min_datetime": "2021-07-08T12:12:30.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-06T12:15:14.000Z", "max_forks_repo_path": "test/4anime/download.js", "max_forks_repo_name": "zyrouge/anime-ext", "max_forks_repo_forks_event_min_datetime": "2021-06-19T23:47:49.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-24T20:47:46.000Z"}
{"max_stars_count": 14, "max_issues_count": 32, "max_forks_count": 6, "avg_line_length": 24.4736842105, "max_line_length": 72, "alphanum_fraction": 0.6623655914}
const FourAnime = require("../../dist/extractors/anime/4anime").default;
const util = require("../util");

const EPISODE_URL = "https://4anime.to/high-school-dxd-episode-01";

const start = async () => {
    const extractor = new FourAnime({
        logger: util.logger,
        http: util.http,
    });

    const episodes = await extractor.getDownloadLinks(EPISODE_URL);
    console.log(episodes);
};

if (!process.env.NODE_ENV) start();

module.exports = start;
