tian-ye1214/redlotus/web-scraping
Claude Code and agent skill by tian-ye1214/redlotus
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
网页数据抓取和解析。用于从网站提取结构化数据、自动化网页操作、处理动态页面内容。当需要从网页获取数据时使用此Skill。
Install
npx vskill@latest install tian-ye1214/redlotus/web-scrapingSKILL.md
网页抓取 Skill
本 Skill 提供网页数据抓取和解析能力,支持静态页面和动态渲染页面。
快速开始
静态页面抓取
使用 requests 和 BeautifulSoup 处理静态页面:
提取特定元素
工作流程
- 分析目标页面: 确定页面是静态还是动态渲染
- 选择抓取方式:
- 静态页面 → requests + BeautifulSoup
- 动态页面 → Selenium 或 Playwright
- 定位目标数据: 使用 CSS 选择器或 XPath
- 提取并清洗数据: 去除无用内容,格式化输出
- 保存结果: 保存为 JSON、CSV 或其他格式
最佳实践
- 设置合理的请求间隔,避免对目标服务器造成压力
- 处理请求失败的情况,实现重试机制
- 尊重 robots.txt 规则
- 注意处理编码问题
常见选择器
| 选择器 | 说明 | |
|---|---|---|
#id | 选择指定 ID 的元素 | |
.class | 选择指定类名的元素 | |
tag | 选择指定标签的元素 | |
[attr=value] | 选择指定属性值的元素 |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/redlotus/tools/skills/web-scraping/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tian-ye1214/redlotus/web-scraping)