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

Libraries

ez_manga
Support for doing something awesome.