Scan your whole stack
From OX Research Newsroom
Are you using shopify-spy?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.0
shopify-spy was last scanned on 26 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.5.0 LATEST | 26 Nov 2026 | No rules fired |
| 0.4.1 | 15 Nov 2026 | No rules fired |
| 0.4.0 | 31 Oct 2026 | No rules fired |
| 0.3.0 | 28 Oct 2026 | Not shown |
| 0.2.4 | 27 Oct 2026 | Not shown |
Findings for v0.5.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.5.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Product and collection scraper for Shopify and WooCommerce stores.
Shopify Spy is a command-line tool and Python library for scraping product and collection data from ecommerce stores. It supports Shopify and WooCommerce stores out of the box, using their public JSON endpoints.
To find Shopify stores to scrape, try searching Google with site:myshopify.com.
pipx and uv tool install CLI tools in isolated environments, so they won't conflict with other Python projects:
# pipx
pipx install shopify-spy
# uv
uv tool install shopify-spy
# Or run it once without installing
uvx shopify-spy scrape --peek https://www.example.com
Installing provides two identical commands, spy and shopify-spy; the examples below use spy. With uvx, name the package: uvx shopify-spy ... or uvx --from shopify-spy spy ... (uvx spy would fetch an unrelated package named spy).
To use it as a Python library (import shopify_spy), the package has to be in the environment the script runs in; a pipx or uv tool install only provides the command:
# In a project (this also installs the CLI)
uv add shopify-spy # or: pip install shopify-spy
# A one-off script, no project or virtual environment needed
uv run --with 'shopify-spy>=0.4' python script.py
A script can also declare the dependency itself (inline script metadata), so uv run script.py works from any directory:
# /// script
# dependencies = ["shopify-spy>=0.4"]
# ///
import shopify_spy as spy
Excel output (--format xlsx) needs the excel extra: pipx install 'shopify-spy[excel]', uv tool install 'shopify-spy[excel]' or uv add 'shopify-spy[excel]'.
Requires Python 3.11+.
The repository is a flake. Its build runs the test suite.
# Run the CLI once
nix run github:ndgigliotti/shopify-spy -- scrape --peek https://www.example.com
# Install it into your profile, which adds spy and shopify-spy
nix profile add github:ndgigliotti/shopify-spy
spy scrape --peek https://www.example.com
# A shell whose Python can import shopify_spy
nix develop github:ndgigliotti/shopify-spy
The CLI and the dev shell include Excel support, so --format xlsx works without the excel extra. In your own flake, overlays.default adds python3Packages.shopify-spy (for every Python version) and a top-level shopify-spy. As in nixpkgs, the library package leaves Excel support out; add it with python3.withPackages (ps: [ ps.shopify-spy ] ++ ps.shopify-spy.optional-dependencies.excel).
# Scrape a Shopify store (default)
spy scrape https://www.example.com
# Scrape a WooCommerce store
spy scrape --platform woocommerce https://www.example.com
# Scrape multiple stores
spy scrape https://store1.com https://store2.com https://store3.com
# Download product images
spy scrape https://www.example.com --images
# Include collections (Shopify only)
spy scrape https://www.example.com --collections
# Scrape multiple stores from a file
spy scrape --url-file stores.txt
# Specify output directory
spy scrape https://www.example.com --output ./my-data
# Sample 10 items (useful for testing)
spy scrape https://www.example.com --limit 10
# Quick peek at a store (prints 1 item to stdout, no file output)
spy scrape --peek https://www.example.com
# Peek and pipe to jq
spy scrape --peek https://www.example.com 2>/dev/null | jq '.product.title'
# Bypass robots.txt restrictions
spy scrape --ignore-robots https://www.example.com
Results are saved as JSONL in the output directory (default: ./output). Use --format to choose JSON, CSV, Excel (XLSX) or XML instead, and --schema unified for one row per variant with the same columns on both platforms. A live item counter is displayed during scraping.
The same engine is a library, so a script can scrape, filter and save in one pass:
import shopify_spy as spy
# Items are plain dicts, yielded while the stores are scraped
for item in spy.scrape("https://www.example.com", max_items_per_store=100):
print(item["product"]["title"])
# Several stores to a file, then check which ones failed and why
run = spy.scrape(["store1.com", "store2.com"], on_failure="warn")
spy.write_items(run, "products.jsonl")
for store in run.result.failed:
print(store.input_url, store.status, store.hint)
See Use as a library for the options, failure handling, images and async use. help(spy.scrape) documents every option.
--platform when a store looks like it runs on it. Malformed URLs are skipped with a warning instead of breaking the run.import shopify_spy gives the same scraping engine as the CLI; see Use as a library.--verbose to also print to the terminal.--bail seconds (default: 30), not counting time spent waiting out a server's Retry-After.uvx shopify-spy scrape --peek URL to see an item's shape, then a script run with uv run --with 'shopify-spy>=0.4' python script.py that filters and saves only what the task needs. Use the CLI for whole-catalog dumps and image downloads.ShopifyProductItem, ShopifyCollectionItem, WooCommerceProductItem), summarize() gives the same fields on both platforms, and every option is documented in help(spy.scrape)--peek pipes a single item to stdout for quick schema inspection; warnings and errors go to stderr, so stdout stays valid JSONL--bail prevents dead runs from hanging indefinitely--quiet suppresses visual noise; log files capture the details separatelyScrapeFailed when every store fails, per-store statuses and hints| Platform | Mechanism | Notes |
|---|---|---|
| Shopify | /products.json bulk endpoint, then collection pages past 25,000 products, sitemap fallback; collections from /collections.json |
Products and collections |
| WooCommerce | /wp-json/wc/store/v1/products, then each page's variations (?type=variation); product pages' structured data as a fallback |
No authentication required |
scrapeScrape products and collections from Shopify and WooCommerce stores.
spy scrape [URL] [OPTIONS]
Arguments:
URL... - One or more store URLs (optional if using --url-file)Options:
--platform, -p PLATFORM - Ecommerce platform: shopify, woocommerce (default: shopify)--limit, -n INT - Stop each store after N items (per store; useful for sampling or testing)--url-file, -f FILE - File containing URLs (one per line; lines starting with # are comments)--products / --no-products - Scrape products (default: yes; Shopify only)--collections / --no-collections - Scrape collections (default: no; Shopify only)--images / --no-images - Download images (default: no)--output, -o PATH - Output directory (default: ./output)--format, -F FORMAT - Output format: json, jsonl, csv, xlsx, xml (default: jsonl; xlsx needs the excel extra, see Excel output)--schema SCHEMA - Item shape: native (as scraped) or unified (a row per variant; see Unified schema). Default: native, except CSV and XLSX, which are always unified--config, -c FILE - Path to YAML config file--concurrent INT - Concurrent requests per host (default: 16)--max-stores INT - Stores scraped at once (default: 16)--throttle / --no-throttle - Auto-throttle requests (default: yes)--user-agent, -A TEXT - Custom User-Agent header--ignore-robots, -i - Ignore robots.txt restrictions--insecure - Don't verify TLS certificates--proxy URL - Send every request through this proxy (http://, https:// or socks5://); overrides HTTPS_PROXY/HTTP_PROXY, see Limitations--bail INT - Abort if no items scraped within N seconds (default: 30, 0 to disable). Time spent waiting out a server's Retry-After doesn't count, so a rate-limited store can wait (retries + 1) × up to 60 seconds for each request before its first item, with no fixed bound across requests--peek - Print 1 item to stdout as JSONL and exit (no files or directories created); with --schema unified, its unified rows--verbose, -v - Show debug output (logs to both file and terminal)--quiet, -q - Show only warnings and errors (no live item counter)spy --version (-V) prints the installed version.
initCreate a default configuration file.
spy init [PATH]
Arguments:
PATH - Where to create the config file (default: ./shopify-spy.yaml)Options:
--force, -f - Overwrite existing fileShopify Spy can be configured via YAML file. Create one with spy init:
# shopify-spy.yaml
scrape:
platform: shopify # Platform: shopify, woocommerce
products: true # Scrape product data (Shopify only)
collections: false # Scrape collection data (Shopify only)
images: false # Download product images
# limit: 100 # Stop each store after N items
bail: 30 # Abort if no items scraped within N seconds (0 = off)
output:
dir: ./output # Output directory for results
format: jsonl # Output format: json, jsonl, csv, xlsx, xml
# schema: unified # native (as scraped) or unified (row per variant; csv and xlsx always)
images_subdir: images # Subdirectory for downloaded images
network:
concurrent_requests: 16 # Concurrent requests per host
timeout: 180 # Request timeout (seconds)
retries: 2 # Retry failed requests
# user_agent: MyBot/1.0 (+https://example.com) # Custom user agent
# proxy: http://proxy.example.com:8080 # Fixed proxy (overrides HTTPS_PROXY)
respect_robots_txt: true
verify_tls: true # Verify TLS certificates (false = --insecure)
max_concurrent_stores: 16 # Stores scraped at once
throttle:
enabled: true # Auto-throttle based on server response
start_delay: 1 # Initial download delay (seconds)
max_delay: 60 # Maximum download delay (seconds)
target_concurrency: 1.0 # Target concurrent requests (higher = faster)
Config file search order:
--config./shopify-spy.yaml~/.config/shopify-spy/config.yamlCLI options override config file settings.
Results are saved in the output directory (JSONL by default, configurable via --format). Two schemas decide what each record holds:
native (the default for JSONL, JSON and XML): each item as the store's API returned it, described under Shopify output and WooCommerce output. It keeps every field.unified (--schema unified, or output.schema in the config; CSV and XLSX are always unified): one record per variant with the same columns on both platforms, described under Unified schema. In XML each row is an <item>. --schema native with CSV or XLSX is an error.The directory looks like this:
output/
data/
shopify_spider_2024-01-15T10-30-00+00-00.jsonl
status/
shopify_spider_2024-01-15T10-30-00+00-00_status.json
images/
full/
<image files>
File names start with the platform and a UTC timestamp. A status JSON file is written for each run with metadata:
{
"items_scraped": 47,
"items_written": 47,
"urls": [
{"url": "https://store.com", "items": 47, "status": "ok", "code": "ok"}
],
"finish_reason": "finished",
"duration_seconds": 12.3,
"log_file": "/home/user/.local/state/shopify-spy/logs/shopify_spider_2024-01-15T10-30-00+00-00.log",
"output_error": null
}
status is a human-readable label; code is the matching StoreStatus value from the Python API:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.