Skip to main content

A modern Python library for writing maintainable web scrapers.

Project description

About Spatula

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.7.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

spatula-0.7.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spatula-0.7.1.tar.gz
Algorithm Hash digest
SHA256 39f0274c5f481b02bac9646b49c9809e9cf8c453aa1dcc13426b04700e0f5f0d
MD5 66c6cdf077b17821e0e19798148a8373
BLAKE2b-256 bd227c5ffb056bc69682f8e3360730288dd89104e96f9d82d3ffe1070f0345bf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spatula-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 597b769f54daa99cfb819f24e86adc87e89f6c980e50636408eec48f95312b45
MD5 4e27d934a77ab32750a3cd6507b3ff74
BLAKE2b-256 86d131f682811fc6285074ac676256bd590255f7eb4b6ea47554f6bde8dd3a63

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