Skip to main content

A professional API and scraper for Anna's Archive

Project description

📜 Librix

A professional Python API and CLI for searching and retrieving metadata from Anna's Archive.

Python Version License: MIT

Features

  • 🔍 Universal Search: Search by query, language, format, and sorting.
  • 🖼️ Rich Metadata: Extract titles, authors, publishers, and high-quality cover images.
  • 🚀 FastAPI Powered: Modern, high-performance web interface.
  • 🔗 Mirror Links: Dynamic extraction of fast and external download links.
  • 💻 CLI Interface: Start the API server with a single command.

Installation

pip install librix

Usage

As a Library

from librix.scraper import AnnasArchiveScraper

scraper = AnnasArchiveScraper()
results = scraper.search("The Great Gatsby", lang="en", ext="epub")

for book in results:
    print(f"{book['title']} by {book['author']}")
    # Get details (mirrors, large cover)
    details = scraper.get_detail(book['md5'])
    print(details['mirrors'])

As an API

Start the server:

librix

The API will be available at http://localhost:8000.

Endpoints

  • GET /search?q={query}: Search for books.
  • GET /detail/{md5}: Get download mirrors and cover image.

Disclaimer

This project is for educational purposes only. Please respect the terms of service of any website you interact with.

License

MIT © Kosma Gąsiorowski

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

librix-0.1.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

librix-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file librix-0.1.0.tar.gz.

File metadata

  • Download URL: librix-0.1.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for librix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62b0a384fe01a48e19bec1de62e091331c6f4e163c5b6f4c641438dcbb8a54ca
MD5 e7405d2730530d7e119946f2ed5e4eb2
BLAKE2b-256 7c95711efca74176f3f26973d975cdc2d674b2a89c1e87ee3217bec9b7063b9d

See more details on using hashes here.

File details

Details for the file librix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: librix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for librix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3d049f4f4486cd48a1cc830f0282a69db56f47f291c6047b9afd045a572d000
MD5 cc266f43a57e3270d09fdaf9444ba5d6
BLAKE2b-256 c72acd7bdd5665036958c3cfea31530fec168ad059bab1159ccab95608277255

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page