{"repo":"AneiangSoft/Aneiang.Pa","free":true,"listed":false,"github":"https://github.com/AneiangSoft/Aneiang.Pa","clone":"git clone https://github.com/AneiangSoft/Aneiang.Pa.git","description":"Aneiang.Pa 是一个极简、声明式的 .NET 爬虫库，支持 20 个平台。一行代码抓数据，一份 YAML 扩平台，开箱即用。","language":"C#","stars":71,"topics":["hotnews","net","netcore","scraper","spider"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"一个基于 .NET 极简、声明式的爬虫库。 一行代码抓数据，一份 YAML 扩平台。 快速开始 · 内置平台 · 自定义 Recipe · Web API · 生产特性 · English --- 🚀 一行起步 强类型映射： 异步流式枚举： 单次覆盖选项： --- 📦 安装 包 说明 ---- ------ Aneiang.Pa 核心引擎 + 20 内置 Recipe + 8 中间件 + 4 解析器 Aneiang.Pa.AspNetCore app.MapPaApi() 一行起 REST API Aneiang.Pa.Client HTTP 强类型客户端，调用远程 Pa API 服务 Aneiang.Pa.Abstractions 接口与模型（写扩展包时引用） --- ✨ 亮点特性 特性 说明 ------ ------ 🧱 极简 API Pa.Source(\"WeiBo\").GetAsync() 一行抓数据 📜 声明式 Recipe YAML / Builder DSL / 特性标注， 新增平台 0 行 C# 代码 🏭 内置 20 平台 16 个新闻热榜 + 2 个 GitHub + 2 个彩票，开箱即用 🛤 执行管道 日志 / 缓存 / 重试 / 熔断 / 超时 / 限流 / 指标 / 追踪 默认开启 📊 可观测性 System.Diagnostics.Metrics + ActivitySource ，OpenTelemetry 兼容 🌐 代理池 轮询/随机 + 健康跟踪 + 连续失败自动禁用 🚀 ASP.NET Core app.MapPaApi() 一行起 REST API 🔌 插件化 第三方包通过 [assembly: PaScraperModule] 自动发现 🤖 特殊站点 抖音 Cookie 自动获取（内置 DouYinCookieMiddleware ） --- 🏪 内置 20 个平台 分类 Source 描述 ------ -------- ------ 新闻热榜 WeiBo ZhiHu Bilibili BaiDu DouYin TouTiao 微博 / 知乎 / B站 / 百度 / 抖音 / 头条 HuPu Tencent JueJin ThePaper DouBan IFeng 虎扑 / 腾讯 / 掘金 / 澎湃 / 豆瓣 / 凤凰网 Csdn CnBlog ItHome 36kr CSDN / 博客园 / IT之家 / 36氪 GitHub Github.Trending Github.Releases GitHub Trending / dotnet/runtime Releases 彩票 Lottery.SSQ Lottery.DLT 双色球 / 大乐透 --- 📜 新增一个平台 — 0 行 C# 代码 recipes/news/cnbeta.yaml ： --- 🛠 四种 Recipe 来源 方式 适用场景 写法 ------ ---------- ------ 内置 YAML 开箱即用 20 个平台已嵌入 dll 外部 YAML/JSON 配置外置，社区共享 Pa.Configure(c = c.UseRecipesFolder(...)) Builder DSL 动态构造、运行时定义 Pa.Define(\"Name\", b = b.Get(...).ParseHtml(...)) 特性标注 强类型、IDE 友好 [Recipe][Get][Container][Selector]","default_branch":null,"files":null,"tree":[],"storefront":"/r/AneiangSoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AneiangSoft/Aneiang.Pa/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}