Skip to content
Proyek

Tentang

SerpScrap retrieves structured search results for SEO, research, and automation. It is available as a Python package, a CLI, a Docker application, and an MCP-compatible server. Results are JSON-compatible and preserve the source engine, rank, URL, title, snippets, result type, and typed failures.

Sistem dan infrastruktur

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

SerpScrap

Version 2.0.0-alpha.3 Documentation status Docker pulls

SerpScrap retrieves structured search results for SEO, research, and automation. It is available as a Python package, a CLI, a Docker application, and an MCP-compatible server. Results are JSON-compatible and preserve the fusion rank, provider rank, source engine, URL, title, snippets, result type, and typed failures.

Version 2.0.0-alpha.3

This is an alpha release for evaluation and development. Provider pages are dynamic, live searches require Chrome and network access, and results can be partial when a provider blocks, rate-limits, requests consent, or changes its layout. SerpScrap does not bypass those controls.

Install the package

python -m pip install SerpScrap==2.0.0a3

For a source checkout:

git clone https://github.com/ecoron/SerpScrap.git
cd SerpScrap
pipenv install --dev
pipenv run python -m pip install -e .

Python example

from serpscrap import Config, SerpScrap

config = Config()
config.apply({
    "search_engines": ["google", "bing"],
    "country_code": "DE",
    "num_workers": 2,
})

scraper = SerpScrap()
results = scraper.search("privacy friendly search", config=config, pages=1)
scraper.save_json("results.json", overwrite=True)

CLI example

serpscrap search -k "renewable energy" --search-type news \
  --engine google --engine bing --country DE --workers 2 \
  --output results.json --overwrite

The CLI keeps result JSON on stdout and progress/logging on stderr. Run serpscrap search --help for the complete option reference.

Docker application

The Compose stack provides the API, PostgreSQL history, web UI, and MCP gateway:

mkdir -p data/postgres data/cache data/diagnostics data/exports logs
cp .env.example .env
# Replace the PostgreSQL, SearXNG, and MCP placeholder secrets in .env.
docker compose -f docker/compose.yml up --build

Open http://localhost:8080 for the UI, use the API at http://localhost:8000/api/v1, and connect MCP clients to http://localhost:8001. The standard stack also starts SearXNG at http://localhost:8888 and connects SerpScrap to it internally. SearXNG is enabled by default and can be disabled from the configuration page. See the :doc:`docs/docker` guide for required secrets, health checks, mounts, operations, and security boundaries. Published ports are loopback-only by default.

MCP server

The MCP gateway exposes tools for starting searches, polling status, listing results, inspecting history, discovering engines, and managing validated configuration. See the :doc:`docs/mcp` guide for JSON-RPC examples and client connection details.

Documentation map

Project checks

pipenv run python -m ruff check serpscrap scrapcore tests
pipenv run python -m pytest -m "not browser"
pipenv run python -m sphinx -W --keep-going -b html docs docs/_build/html

License and source

Source code is available at https://github.com/ecoron/SerpScrap. The project is licensed under the terms in LICENSE.

Jelajahi proyek terkait

Memuat…