ez_manga 1.0.0 copy "ez_manga: ^1.0.0" to clipboard
ez_manga: ^1.0.0 copied to clipboard

An easy package use to crawl manga from otakusan.net and read manga from Mangadex

Features #

This is a package that use to crawl manga from otakusan.net and read manga from mangadex

Getting started #

V1.0.0: support crawl manga from otakusan (I will update feature read manga from mangadex soon!)

Usage #

void main() async {
  // search a manga
  final String? name = stdin.readLineSync();
  final List<MangaBase> list = await OtakuSan.search(name!);
  list.forEach(print);

  // choose manga
  stdout.write("choice: ");
  int choice = int.parse(stdin.readLineSync()!);
  final Manga manga = await OtakuSan.loadMangaInfo(manga: list[choice - 1]);
  print(manga);

  // load chapters
  manga.chapters.forEach(print);
  stdout.write("Enter chap: ");
  choice = int.parse(stdin.readLineSync()!);

  // get pages
  print(manga.chapters[choice - 1].uri);
  await OtakuSan.read(manga.chapters[choice - 1].uri).then((chap) => chap.forEach(print));
}

Additional information #

This is the package I use to support for my flutter project manga_read

0
likes
140
pub points
0%
popularity

Publisher

unverified uploader

An easy package use to crawl manga from otakusan.net and read manga from Mangadex

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

html, html_main_element, http

More

Packages that depend on ez_manga