Skip to main content

Small scraping utilities for CLI and Python workflows.

Project description

scrape-smith

PyPI Python GitHub

No-dependency Python utilities for scraping workflows.

The package exposes one main CLI command, scrape, with subcommands for each tool.

scrape tables <html-file-or-url>

The table tool extracts tables from a local HTML file or HTTP(S) URL and writes the result to a file. CSV is the default output format, and successful commands do not print table data to the screen.

scrape tables page.html
scrape tables https://example.com/page.html -o result.csv
scrape tables page.html --format json -o tables.json

Without -o, output is written to a safe source-based filename:

page.html -> page-tables.csv
https://yeiichi.github.io/claim-class-model -> claim-class-model-tables.csv

If the default filename already exists, scrape avoids overwriting it by adding a numeric suffix, such as page-tables-2.csv.

Python APIs live under scrape_smith.tools.

from scrape_smith.tools.tables import extract_tables

tables = extract_tables("page.html")

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

scrape_smith-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

scrape_smith-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrape_smith-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for scrape_smith-0.1.0.tar.gz
Algorithm Hash digest
SHA256 476f699561dcf235e207201599e19f00a8e7f04b6a0726ec1d918ba2e05d9a1e
MD5 0f35b3bb475908c531996d52e299b573
BLAKE2b-256 ec435f40d7def14b53bca969d4e89cef1d78ddedbe44a7f5afdc5640a740db50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scrape_smith-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for scrape_smith-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab714fe8c4dd2b39d8a96857c90a3cff94433682fe89fb62c5d3cfdb60f9bcdd
MD5 b02165868a7cfbbd872471a937a8cfbe
BLAKE2b-256 8582a3b623a4aae4238838167ba9e01e437e1ee670c5703407e77c3b81e5e023

See more details on using hashes here.

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