scraper
Skill by duyet
Adds, debugs and modifies price scrapers for e-commerce sites such as Shopee, Lazada and Tiki. Aimed at developers maintaining PriceTrack's scraper configs and pullData module.
Install scraper
Built from the published package, never by AI.
git clone --depth 1 https://github.com/duyet/pricetrack /tmp/pricetrack && mkdir -p ~/.claude/skills && cp -r /tmp/pricetrack/.claude/skills/scraper ~/.claude/skills/scraperRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/duyet/pricetrack /tmp/pricetrack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pricetrack/.claude/skills/scraper ~/.gemini/antigravity-cli/skills/scraperAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The scraper skill helps an AI assistant work on PriceTrack's price scrapers for e-commerce sites such as Shopee, Lazada and Tiki. It covers adding a new site, debugging an existing one and changing scraping logic. Each site has a config file in functions/config that holds a URL pattern, CSS selectors and optional transform functions.
A generic pull module, functions/modules/pullData.js, reads these configs and fetches product pages. It uses Puppeteer-core with @sparticuz/chromium for JavaScript-rendered pages, jsdom for static HTML and axios for simple HTTP requests. The source also lists updateInfo.js for product info updates and utils/fetch.js for HTTP fetch utilities. The skill is aimed at developers maintaining PriceTrack's Firebase Functions scraping code.
Written from the project's SKILL.md and checked against it.
What it can do
- Add a new site scraperCreate a site config with a URL pattern and selectors, then register it in the config index.
- Test a scraperRun pullData from the Firebase functions shell with a product URL.
- Debug scrapersCheck Firebase Functions logs and headless Chromium constraints when a scraper fails.
- Modify scraping logicChange the generic pullData module that reads the site configs.
- Verify scraped dataCheck that the scraped data structure matches what pullData expects.
What you need
- PriceTrack codebase with a functions directory
- Firebase CLI for the functions shell and logs
- Puppeteer-core and @sparticuz/chromium for JavaScript-rendered pages
Try asking
- Add a scraper config for a new e-commerce site in functions/config
- Debug why the Shopee price scraper stopped returning data
- Test pullData with a Lazada product URL in the functions shell
Good to know
- Puppeteer scrapers run headless on serverless Chromium with no GPU and limited memory.
- @sparticuz/chromium has size limits and needs checking for updates.
- Some sites require specific headers or cookie consent handling.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/scraper/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB
Alternatives to scraper
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
scraper: common questions
Which sites does the PriceTrack scraper skill cover?
The source names Shopee, Lazada and Tiki as examples, followed by 'etc.', so other sites are possible. Each site has its own config file under functions/config.
How are scraper configs structured?
Each config exports a urlPattern regex, selectors for fields such as price, title and image, and optional transform functions.
How are scrapers debugged?
The source points to Firebase Functions logs. It also notes that serverless headless Chromium has no GPU and limited memory, and that some sites need special headers or cookie handling.
How do I install scraper?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is scraper free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is scraper safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to scraper?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
