dsh-local-crawler: A Local-First Web Scraping Tool

Introduction

The DeepSeek Harness (DSH) plugin ecosystem follows the philosophy of “everything is a plugin.” When you need an agent to access web page content, there are typically two approaches: calling a cloud-based scraping service, or writing your own crawler scripts. The former comes with quota limits and privacy concerns, while the latter incurs high development costs and is difficult to debug. The dsh-local-crawler plugin provides a local-first web scraping solution that uses browser rendering instead of static fetching and LLM-assisted structured extraction, enabling agents to perform web access entirely on the local machine.

Plugin Positioning

dsh-local-crawler is a local web scraping tool designed for the DeepSeek Harness Agent, developed by maintainer lokeshvara123. It does not rely on any cloud-based scraping services, does not consume third-party quotas, and page content is processed locally only (except when local_extract calls the LLM API). The plugin uses Puppeteer to invoke the local Chrome/Edge browser for real rendering, and supports converting web page content to Markdown, listing links, crawling sites, and extracting structured JSON via LLM.

Core Features

The plugin provides four agent-native tools:

  • local_scrape: Fetches a single URL and returns cleaned Markdown content (Readability denoising). If the page is JS-rendered or static fetching yields no results, it automatically falls back to browser rendering.
  • local_map: Lists page links (same-domain by default) and generates a single-page site map.
  • local_crawl: Performs breadth-first crawling of a site with configurable page count, depth, path filters, and request intervals, returning an index with Markdown previews.
  • local_extract: Uses an LLM to extract structured JSON from a page. Defaults to the DeepSeek API with DSH credential DEEPSEEK_API_KEY, and supports custom base URL, model, and credential references.

Installation & Activation

Desktop Client:
1. Open DSH Settings → Plugins → Install dsh-local-crawler (or install from a local directory).
2. Completely quit the desktop client (including the system tray) and restart it.

Web Profile:

dsh plugin --profile web add dsh-local-crawler

After restart, the agent can use the four local_* tools.

Configuration

Edit the plugin’s config field in the Profile Patch. Defaults are as follows:

Key Default Description
scrapeTimeoutMs 30000 Timeout for single-page scrape/render (milliseconds).
scrapeMaxChars 40000 Maximum number of Markdown characters returned by local_scrape.
crawlMaxPages / crawlDefaultPages 50 / 25 Upper limit and default value for the number of pages to crawl.
crawlMaxDepth / crawlDefaultDepth 4 / 3 Upper limit and default value for crawl depth.
crawlPreviewChars 1200 Markdown preview length per crawled page.
crawlResultChars 30000 Total character limit for the crawl index.
mapMaxLinks 300 Maximum number of links in the list.
extractModel deepseek-chat Model used by local_extract.
extractBaseURL https://api.deepseek.com OpenAI-compatible API endpoint.
extractCredentialRef DEEPSEEK_API_KEY DSH credential reference where the API Key is stored.
extractTimeoutMs / extractMaxChars 60000 / 40000 Timeout and character limit for extraction tasks.
chromePath (auto-detected) Override path to the browser executable.
userAgent Chrome UA + dsh-local-crawler/0.1 Request User-Agent.
requestDelayMs 250 Delay between crawl requests (milliseconds).

Usage Limitations

  • local_crawl requests pages sequentially and does not currently honor robots.txt. For sites that are not your own, it is recommended to set a smaller max_pages value.
  • local_scrape converts HTML to Markdown and does not currently parse PDFs or binary documents.
  • Screenshot and change-monitoring features are planned for v2.

Use Cases

Suitable for DSH Agent development scenarios that require local web scraping, site indexing, and structured data extraction. The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation.

Summary

dsh-local-crawler provides a complete set of local web scraping tools that require no cloud services and no additional quotas, allowing agents to safely access and parse web pages locally. After installation, the full workflow—from single-page scraping to site crawling to structured extraction—can be completed through the four tools: local_scrape, local_map, local_crawl, and local_extract.

Directory: https://www.skillhub.cn/plugins/lokeshvara123/dsh-local-crawler
GitHub: https://github.com/lokeshvara123/dsh-local-crawler

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye