A minimalistic, recursive web crawling library for Python.
Project description
The solitary and lucid spectator of a multiform, instantaneous and almost intolerably precise world.
—Funes the Memorious, Jorge Luis Borges
memorious is a light-weight web scraping toolkit. It supports scrapers that collect structured or un-structured data. This includes the following use cases:
Make crawlers modular and simple tasks re-usable
Provide utility functions to do common tasks such as data storage, HTTP session management
Integrate crawlers with the Aleph and FollowTheMoney ecosystem
Get out of your way as much as possible
Design
When writing a scraper, you often need to paginate through through an index page, then download an HTML page for each result and finally parse that page and insert or update a record in a database.
memorious handles this by managing a set of crawlers, each of which can be composed of multiple stages. Each stage is implemented using a Python function, which can be re-used across different crawlers.
The basic steps of writing a Memorious crawler:
Make YAML crawler configuration file
Add different stages
Write code for stage operations (optional)
Test, rinse, repeat
Documentation
The documentation for Memorious is available at alephdata.github.io/memorious. Feel free to edit the source files in the docs folder and send pull requests for improvements.
To build the documentation, inside the docs folder run make html
You’ll find the resulting HTML files in /docs/_build/html.
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
Hashes for memorious-2.6.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b3fc24004e9a48303f0893d633801b6d0204fe904c490da97a5dc97fc9a147 |
|
MD5 | da9fa19e66f1c39e9e206868224fe613 |
|
BLAKE2b-256 | eb91bf3558da6caf65d935644e57ddfb152ad7ddea10392f03668b8b04acbd07 |