Skip to main content

Async framework for building modular and scalable web scrapers.

Project description

aioscraper

Asynchronous framework for building modular and scalable web scrapers.

Python License Version

Features

  • 🚀 Fully asynchronous architecture powered by aiohttp and aiojobs
  • 🔧 Modular system with middleware support
  • 📦 Pipeline data processing
  • ⚙️ Flexible configuration
  • 🔄 Priority-based request queue management
  • 🛡️ Built-in error handling

Installation

pip install aioscraper

Requirements

  • Python 3.10 or higher
  • aiohttp
  • aiojobs

Quick Start

import asyncio

from aioscraper import BaseScraper, AIOScraper
from aioscraper.types import Response, RequestSender


class Scraper(BaseScraper):
    async def start(self, send_request: RequestSender) -> None:
        await send_request(url="https://example.com", callback=self.parse)

    async def parse(self, response: Response) -> None:
        # handle response
        pass


async def main():
    async with AIOScraper(scrapers=[Scraper()]) as scraper:
        await scraper.start()


if __name__ == "__main__":
    asyncio.run(main())

License

MIT License

Copyright (c) 2025 darkstussy

Links

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

aioscraper-0.1.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

aioscraper-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioscraper-0.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aioscraper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c795c499ca5895982b1cbcb218203e996612e9c24c56784f176c9bd51b5902cb
MD5 3020f0d8ea2bf87a34667f07ad3b4a8d
BLAKE2b-256 d4128f6f4316e17e848bf643e42d82b1c269d4b6b1069b5b8c30874b999b8b69

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioscraper-0.1.0.tar.gz:

Publisher: release.yml on DarkStussy/aioscraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: aioscraper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aioscraper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77aeb47812b8dce7c49358980d1948b5a233b25ce591a01d4f0947a3bf780cd7
MD5 21c754c5b3475d3aebe58c884b3aab44
BLAKE2b-256 52c83f6a59c86e9ab3c7285cf8bd885bcdd90bfed624b5ce5685cc3b431a8459

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioscraper-0.1.0-py3-none-any.whl:

Publisher: release.yml on DarkStussy/aioscraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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