Chrome-driven SaaS content scraper — yields a uniform Document stream for downstream pipelines (pleno-anonymize, pleno-secret-scanner).
Project description
saas-scraper
Chrome-driven SaaS content scraper. Yields a uniform Document stream for
downstream pipelines (e.g. pleno-anonymize,
pleno-secret-scanner).
Where API-based connectors stop — locked-down workspaces, SSO-only sessions,
content only visible in the UI — saas-scraper keeps going by driving a real
Chrome session via Playwright. Reuses your existing browser profile so login,
MFA and SSO flows are inherited rather than re-implemented per provider.
Install
uv add saas-scraper
# one-time browser binary install
uv run playwright install chromium
Or as a CLI:
pipx install saas-scraper
playwright install chromium
Usage
# List available connectors
saas-scraper list
# Scrape a Slack workspace and stream Documents to stdout (NDJSON)
saas-scraper fetch slack --workspace acme --since 7d
# Save to a file for downstream consumption
saas-scraper fetch notion --workspace acme > docs.ndjson
Programmatic use:
import asyncio
from saas_scraper import BrowserSession, registry
async def main() -> None:
async with BrowserSession() as session:
connector = registry.create("slack", session=session, workspace="acme")
async for doc in connector.discover_and_fetch():
print(doc.ref.path, len(doc.text or b""))
asyncio.run(main())
Connectors
| Connector | Status |
|---|---|
| github | scaffolded |
| gitlab | scaffolded |
| slack | scaffolded |
| jira | scaffolded |
| confluence | scaffolded |
| notion | scaffolded |
| bitbucket | scaffolded |
The v0.1.0 release ships the Document protocol, the Chrome session manager,
and a working scaffold per connector. Additional providers and per-connector
hardening land in subsequent releases — see issues.
Why Chrome and not the API?
- Inherits SSO / MFA / SCIM-locked sessions that don't cleanly expose API tokens to a scanner role.
- Bypasses API quota tiers that throttle org-wide content enumeration.
- Reaches UI-only surfaces (Notion comments, Slack canvas, Jira views).
When an official API exists and is sufficient, prefer that — saas-scraper
is the fallback for the cases where it isn't.
Development
uv sync --all-extras
uv run playwright install chromium
uv run pytest
uv run ruff check
uv run mypy src
The default pytest pass exercises plumbing only (Document protocol,
registry wiring, CLI helpers). Live browser scrapes against real SaaS
providers are not part of CI; run them locally with
saas-scraper fetch <connector> --headed so a real Chromium window
opens for first-time SSO.
Release
vX.Y.Z tag pushes trigger PyPI trusted publishing via GitHub Actions —
no manual token. The first publish requires a one-time Trusted Publisher
configuration at https://pypi.org/manage/account/publishing/:
| Field | Value |
|---|---|
| PyPI Project Name | saas-scraper |
| Owner | plenoai |
| Repository name | saas-scraper |
| Workflow name | release.yml |
| Environment name | pypi |
After that, every tag matching v* will publish automatically.
License
AGPL-3.0-or-later.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saas_scraper-0.1.3.tar.gz.
File metadata
- Download URL: saas_scraper-0.1.3.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26adebedfb2067180afced0b6ae09c09b8bcb820a5b64f555793ba43a2b1ff46
|
|
| MD5 |
87abdcb9c87762c6f2bec95920baeb90
|
|
| BLAKE2b-256 |
20f74e07cd3f81c9b9b2a23b6b9f9f433e0be06d1cb8ec98dc844f90a39d645f
|
Provenance
The following attestation bundles were made for saas_scraper-0.1.3.tar.gz:
Publisher:
release.yml on plenoai/saas-scraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
saas_scraper-0.1.3.tar.gz -
Subject digest:
26adebedfb2067180afced0b6ae09c09b8bcb820a5b64f555793ba43a2b1ff46 - Sigstore transparency entry: 1449509334
- Sigstore integration time:
-
Permalink:
plenoai/saas-scraper@7343ba6da0c9193bb27feaf1b1808c3fe094c08c -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/plenoai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7343ba6da0c9193bb27feaf1b1808c3fe094c08c -
Trigger Event:
push
-
Statement type:
File details
Details for the file saas_scraper-0.1.3-py3-none-any.whl.
File metadata
- Download URL: saas_scraper-0.1.3-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bfac9343455feb0a2931a0d8190101db63abf64ec590f84689ef26cb53a38da
|
|
| MD5 |
7e706ac982cd62d5dc83638f33dc719f
|
|
| BLAKE2b-256 |
fed3f304242f311b258d9ac3b8ba6242049a5d7720a1af000cd56266ac204b8b
|
Provenance
The following attestation bundles were made for saas_scraper-0.1.3-py3-none-any.whl:
Publisher:
release.yml on plenoai/saas-scraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
saas_scraper-0.1.3-py3-none-any.whl -
Subject digest:
4bfac9343455feb0a2931a0d8190101db63abf64ec590f84689ef26cb53a38da - Sigstore transparency entry: 1449509358
- Sigstore integration time:
-
Permalink:
plenoai/saas-scraper@7343ba6da0c9193bb27feaf1b1808c3fe094c08c -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/plenoai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7343ba6da0c9193bb27feaf1b1808c3fe094c08c -
Trigger Event:
push
-
Statement type: