l-youtube-product-url-list
Generate a list of YouTube product URLs from a product list, matching against product master data.
/youtube-product-url-list
Generate a list of YouTube product URLs from a list of products.
Usage
/youtube-product-url-list
Then provide a list of products in the format:
- OXI Instruments: OXI ONE
- OXI Instruments: OXI Coral
- OXI Instruments: OXI Meta
- Weston Precision Audio: SF1 Dual / Stereo VCF
- ADDAC System: ADDAC713 Stereo Discrete Mixer
- ADDAC System: ADDAC712 Vintage Pre
- iPad AUM
Output
The command will:
- Search for each product in the product master data
- Generate URLs for found products
- Validate each URL to ensure it’s not a 404
- List products that were not found
- Save the result to
/__inbox/youtube-url-{yyyymmdd}-{n}.md
Example output:
OXI Instruments: OXI ONE
https://takazudomodular.com/products/oxi-one-intro/
OXI Instruments: OXI Coral
https://takazudomodular.com/products/oxi-coral-intro/
...
## Not found
- iPad AUM
Implementation
The command uses the Node.js script at scripts/youtube-product-url-list.mjs which:
- Imports product data from
src/data/product-master-data.mjs - Searches products by brand and name/seriesName
- Generates full URLs from the
detailHreffield - Creates sequentially numbered output files
Script Execution
# Run the script directly
node scripts/youtube-product-url-list.mjs
# Or pipe input
echo "- OXI Instruments: OXI ONE" | node scripts/youtube-product-url-list.mjs
# Or use it as a command
./scripts/youtube-product-url-list.mjs