annas_archive_api 1.1.0 copy "annas_archive_api: ^1.1.0" to clipboard
annas_archive_api: ^1.1.0 copied to clipboard

Anna's archive API is an easy to use SDK for interacting with the popular Anna's Archive Service. It provides a simple interface for fetching and parsing data from the service.

Flutter SDK for Anna's Archive Service.

Features #

  • Returns a List of books based on a search request.
  • Returns a List of books in a GoodReads collection.
  • Returns a List of download links for a book.

Getting started #

Usage #

final annaApi = AnnaApi();
const searchRequest = SearchRequest(
    query: 'harry potter',
    categories: [Category.fiction],
    formats: [Format.epub, Format.pdf],
    skip:1,
    limit: 10,
    language: Language.french,
    sort: SortOption.smallest,
);

final books = await annaApi.find(searchRequest);
final downloadLinks = await annaApi.getDownloadLinks(books.first.md5);

const collectionRequest = CollectionRequest(
    type: Collection.goodReads,
    url: 'https://www.goodreads.com/list/show/200013._Reece_Reese_',
);
final goodReadsCollection = await annaApi.fetchCollection(collectionRequest);

Additional information #

5
likes
140
points
513
downloads

Documentation

API reference

Publisher

verified publishertribestick.com

Weekly Downloads

Anna's archive API is an easy to use SDK for interacting with the popular Anna's Archive Service. It provides a simple interface for fetching and parsing data from the service.

Homepage

License

BSD-3-Clause (license)

Dependencies

beautiful_soup_dart, book_scraper, collection, compute, freezed_annotation, html, http, json_annotation

More

Packages that depend on annas_archive_api