url-scraping
Skill by jez500
Guides developers through scraping retailer URLs for Price Buddy, covering store setup, scrape strategies, price extraction, availability detection and debugging. It is written for maintainers of Price Buddy's scraping code.
Install url-scraping
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jez500/pricebuddy /tmp/pricebuddy && mkdir -p ~/.claude/skills && cp -r /tmp/pricebuddy/.ai/skills/url-scraping ~/.claude/skills/url-scrapingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jez500/pricebuddy /tmp/pricebuddy && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pricebuddy/.ai/skills/url-scraping ~/.gemini/antigravity-cli/skills/url-scrapingAntigravity 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
This skill documents how Price Buddy extracts product data such as title, price, image and availability from retailer URLs. The pipeline resolves a store by matching the URL's domain, fetches the page with an HTTP or API scraper, extracts each field using the store's scrape strategy, and saves the price as a historical record. It covers strategy types including schema_org, CSS selector, XPath, regex and JSON, along with store settings, cookies and availability match rules.
It also explains auto store creation, retry and cache behaviour, and scheduled price fetching. A debugging section lists common problems such as missing store matches, selectors that no longer match and unparseable prices, with techniques like tinker calls and the store test URL. It is aimed at developers and maintainers working on Price Buddy.
Written from the project's SKILL.md and checked against it.
What it can do
- Store resolutionMatches a URL's host against each store's domains list to find the right store.
- Scrape strategiesDefines how each field (title, price, image, availability) is extracted from the page.
- Auto store creationDetects scrape settings for a new domain, trying Schema.org, selectors, then regex.
- Availability matchingMaps scraped availability text to stock statuses using exact or regex match rules.
- Price normalizationConverts price strings to floats with locale and currency awareness.
- Scheduled price fetchingDescribes the batch job and cron schedule that update prices for all products.
- Debugging guidanceLists common scraping failures and ways to test store resolution and selectors.
What you need
- Price Buddy installation
- Scraper API service for JavaScript-rendered pages (SCRAPER_BASE_URL)
Try asking
- Debug why this retailer URL is not returning a price.
- Add a store for example.com and configure its price selector.
- Write an availability match config that maps pre-order text.
Good to know
- Without a match config, any non-empty availability value maps to out of stock.
- The API scraper is slower and more resource-intensive than the HTTP scraper.
- Default scrape retries are 3 and sleep between scrapes is 10 seconds, both configurable in AppSettings.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .ai/skills/url-scraping/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/scrape-strategy-examples.md4 KB
Alternatives to url-scraping
All alternatives →Shopify skill that lets an AI assistant set up and run a Shopify store through Shopify's official MCP server. It is for people who want to sell online, start a store, or manage an existing Shopify store.
Guides an AI assistant through building Shopify apps, extensions and themes. It covers the GraphQL Admin API, Shopify CLI, Polaris UI and Liquid. Intended for Shopify developers.
Searches Ticketmaster events and seat listings with pricing for people looking for event tickets. It returns Ticketmaster checkout links but cannot complete a purchase itself.
Analyzes ecommerce SEO for product pages, product schema, Google Shopping visibility, Amazon marketplace signals and keyword gaps. Built for stores, catalogs and product listings. Live Shopping and Amazon data needs the optional DataForSEO Merchant API.
Drafts replies to customer emails and tickets using order, refund, CRM and support desk data, in the owner's writing voice. Refunds and sends need the owner's approval, and with Shopify it also flags orders needing attention.
Reviews generated or changed WooCommerce code before it ships. It is for developers building extensions, payment and shipping integrations, checkout customizations, and order or product logic.
Compare with shopify, shopify-development or ticketmaster
url-scraping: common questions
How does Price Buddy pick the right store for a URL?
It matches the URL's host against the domains array of each store using the domainFilter scope. Auto-created stores register both the bare domain and the www variant.
What should I do when a page shows prices only after JavaScript runs?
The source says to switch the store's scraper_service to api, which uses browser-based requests through a scraper API service.
Why does price extraction return null?
The selector matched, but CurrencyHelper::toFloat() could not parse the value. Currency symbols, thousands separators or non-numeric text are common causes.
How do I install url-scraping?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is url-scraping free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is url-scraping safe to use?
It scores 84 of 100. Grades: maintenance A, licence C, quality A. 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 url-scraping?
Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.
