Skip to main content

A modern Python library for writing maintainable web scrapers.

Project description

Overview

spatula is a modern Python library for writing maintainable web scrapers.

Source: https://github.com/jamesturk/spatula

Documentation: https://jamesturk.github.io/spatula/

Issues: https://github.com/jamesturk/spatula/issues

PyPI badge Test badge

Features

  • Page-oriented design: Encourages writing understandable & maintainable scrapers.
  • Not Just HTML: Provides built in handlers for common data formats including CSV, JSON, XML, PDF, and Excel. Or write your own.
  • Fast HTML parsing: Uses lxml.html for fast, consistent, and reliable parsing of HTML.
  • Flexible Data Model Support: Compatible with dataclasses, attrs, pydantic, or bring your own data model classes for storing & validating your scraped data.
  • CLI Tools: Offers several CLI utilities that can help streamline development & testing cycle.
  • Fully Typed: Makes full use of Python 3 type annotations.

Installation

spatula is on PyPI, and can be installed via any standard package management tool:

poetry add spatula

or:

pip install spatula

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

spatula-0.8.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

spatula-0.8.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file spatula-0.8.0.tar.gz.

File metadata

  • Download URL: spatula-0.8.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.1 Darwin/20.3.0

File hashes

Hashes for spatula-0.8.0.tar.gz
Algorithm Hash digest
SHA256 1e65807c59aca8e8cbd9d2df1ef6ec15be4a759d4426880b9c32136362b3b6d9
MD5 b2d6a14b872d3ef52cf2ba2b0791ad48
BLAKE2b-256 1f11b54eb49dd7b5f628e44f2c17d717a10cb3afe5b6ed3d5e0438bade90cb1c

See more details on using hashes here.

File details

Details for the file spatula-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: spatula-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.1 Darwin/20.3.0

File hashes

Hashes for spatula-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bd4eb91b36caf7771271a802c7f6cef4bd0d62845e5314282b29c2109575e61
MD5 be90251ddf1bf01fb4ad4ef178284267
BLAKE2b-256 b3b93d22cde8c82e7d6b4400f6de6bf4a799334634f107f53e0fd6cabbc0c04a

See more details on using hashes here.

Supported by

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