discovery-downloads
Find, filter, retrieve, and politely crawl web pages with Trafilatura discovery/download APIs and CLI flags.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- discovery-downloads
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Find, filter, retrieve, and politely crawl web pages with Trafilatura discovery/download APIs and CLI flags.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md13.5 KB
- 参考文档references/troubleshooting.md13.3 KB
- 参考文档references/workflows.md15.6 KB
- 脚本scripts/discovery_smoke.py8.1 KB
03 SKILL.md 正文
Trafilatura Discovery and Downloads
Use this sub-skill when the task is to find candidate URLs, fetch web pages, inspect HTTP responses, or run Trafilatura's supported feed/sitemap/focused-crawl navigation before extraction.
Best-fit tasks
- Fetch one page with
fetch_url()or inspect status/headers/final URL withfetch_response(). - Build a polite domain-aware download queue with
UrlStore,load_download_buffer(), and buffered download helpers. - Discover candidate article URLs through feeds, sitemaps, and the focused crawler.
- Use CLI navigation flags such as
--feed,--sitemap,--crawl,--explore,--probe,--archived,--url-filter, and--list. - Diagnose blocked downloads, SSL/proxy/timeouts, file-size limits, robots rules, and optional download extras.
Read these references
- API reference for signatures, return objects, response fields, URL store behavior, and discovery helper details.
- Workflows for ready-to-adapt Python and CLI recipes covering single downloads, batch queues, feeds, sitemaps, focused crawling, and Internet Archive fallback.
- Troubleshooting for network failures, polite throttling, proxies, SSL, optional extras, and long-tail limits.
Bundled validation
Run the offline smoke check before relying on this sub-skill in a new environment:
python skills/disco/trafilatura/sub-skills/discovery-downloads/scripts/discovery_smoke.py
The script imports the discovery/download APIs, asserts key signatures, exercises Response, offline feed/sitemap parsing, URL filtering/queue behavior, and a mocked focused-crawl step. It does not contact the network.
Route elsewhere
- Use the extraction/output sub-skills for HTML-to-text extraction, metadata/comments extraction, output formats, or stdin/file conversion after retrieval.
- Use the corpus-quality/deduplication coverage for text-level deduplication, corpus quality evaluation, and Simhash/fingerprints.
- Treat broad production web crawling, cross-domain frontier scheduling, anti-bot bypassing, authenticated scraping, and JavaScript rendering as out-of-scope long-tail gaps; Trafilatura provides a docs-supported focused crawler, not a full web-scale crawler.
Evidence basis
This sub-skill is distilled from repository evidence covering download APIs, CLI navigation, feed/sitemap parsing, focused crawling, URL filtering, settings, and offline/native tests. Runtime guidance is self-contained; source paths may appear only as provenance labels in references.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).