Async framework for building modular and scalable web scrapers.
Project description
aioscraper
Asynchronous framework for building modular and scalable web scrapers.
Features
- 🚀 Fully asynchronous architecture powered by
aiohttpandaiojobs - 🔧 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioscraper-0.2.0.tar.gz.
File metadata
- Download URL: aioscraper-0.2.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e46a1cf8c8c54cedb265daf20bfccabca94604abfb569f5a8b7eee4e273c3795
|
|
| MD5 |
3732303c5db137dfd9200bacebd0e246
|
|
| BLAKE2b-256 |
b19866eee24ca8cbd9b319a5bc432adc4f53c003b88a9d1a65d37d42d0f9c1e6
|
Provenance
The following attestation bundles were made for aioscraper-0.2.0.tar.gz:
Publisher:
release.yml on DarkStussy/aioscraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioscraper-0.2.0.tar.gz -
Subject digest:
e46a1cf8c8c54cedb265daf20bfccabca94604abfb569f5a8b7eee4e273c3795 - Sigstore transparency entry: 436218019
- Sigstore integration time:
-
Permalink:
DarkStussy/aioscraper@32e0629a6f278af81d07034e241c36b6235d3475 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/DarkStussy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@32e0629a6f278af81d07034e241c36b6235d3475 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aioscraper-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aioscraper-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d12bfc31adedcd5d97c99ca597d995c375d7006490094a417b10bbaba2673e8c
|
|
| MD5 |
188956ca961c8afa3c78bc01500d5a8d
|
|
| BLAKE2b-256 |
26430e9048034912b0488fedc583129cc5fa94ba6bc23a63a847a54746bdfda5
|
Provenance
The following attestation bundles were made for aioscraper-0.2.0-py3-none-any.whl:
Publisher:
release.yml on DarkStussy/aioscraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioscraper-0.2.0-py3-none-any.whl -
Subject digest:
d12bfc31adedcd5d97c99ca597d995c375d7006490094a417b10bbaba2673e8c - Sigstore transparency entry: 436218035
- Sigstore integration time:
-
Permalink:
DarkStussy/aioscraper@32e0629a6f278af81d07034e241c36b6235d3475 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/DarkStussy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@32e0629a6f278af81d07034e241c36b6235d3475 -
Trigger Event:
release
-
Statement type: