Skip to main content

AutoScrap

Lightweight Web Scraping Automation for Everyone

Installation

After publishing to PyPI, install with:

pip install autoscrap

Or for development:

pip install -r requirements.txt

Features

  • Simple functions for web scraping:
    • get_text(url, tag): Fetches all text within a given HTML tag from a URL.
    • extract_table(url): Extracts the first HTML table from a URL as a list of lists or pandas DataFrame.
  • No need to learn BeautifulSoup or Selenium.

Usage (Python)

from autoscrap.core import get_text, extract_table

# Get all text inside <p> tags
paragraphs = get_text('https://example.com', 'p')
print(paragraphs)

# Extract the first table as a list of lists
rows = extract_table('https://example.com/table')
print(rows)

# Extract as pandas DataFrame (requires pandas)
df = extract_table('https://example.com/table', as_dataframe=True)
print(df)

Usage (Command Line)

# Extract all <p> tag text from a page
python -m autoscrap.cli get_text https://example.com p

# Extract the first table as plain text
python -m autoscrap.cli extract_table https://example.com

# Extract the first table as a pandas DataFrame (requires pandas)
python -m autoscrap.cli extract_table https://example.com --as-dataframe

Running Tests

pytest

Metadata

Release files for autoscrap 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoscrap 0.1.0
File Size Uploaded
autoscrap-0.1.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autoscrap 0.1.0
File Interpreter ABI Platform
autoscrap-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / autoscrap-0.1.0.tar.gz

Download URL autoscrap-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
61e024fe57f4723bc059be5fe2379d8469f87d7b5470f8dea4eaa1fefee06fda
BLAKE2b-256 checksum
How to use checksums
574d21f38509f6690470b6af1fc5731bb2a0c997b65b5016ead3cb0e3d7b0283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / autoscrap-0.1.0-py3-none-any.whl

Download URL autoscrap-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f212577e56cfb7977b98d241f6a2994aeaf5f911342fcf2cb2808bc1c1e9f2c4
BLAKE2b-256 checksum
How to use checksums
04dfbf6f8f6d9e1bd63b5eeb617296147e3a59e126dc93e60ac79fc79d718ef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page