Last updated:
0 purchases
ez manga
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));
}
copied to clipboard
Additional information #
This is the package I use to support for my flutter project manga_read
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.