Smarter Scraping, Easier Imports
π Plugin Name
AJDWP Auto Product Maker
π¦ Version
250702
π§βπ» Author
Arash Javadi
π Description
AJDWP Auto Product Maker is a powerful WordPress plugin designed for WooCommerce store owners to automate the creation of product listings by scraping product data from external sources. It supports both bulk and single product imports using custom templates with CSS selectors. The plugin integrates with dynamic scraping tools (e.g., Playwright/Node.js) and includes a visual admin UI for mapping selectors and managing imports with ease.
π Features
π 1. Smart Product Scraping
Scrapes product data (title, description, images, price, etc.) from any URL using user-defined selectors.
Supports dynamic JavaScript-rendered content using Node.js + Playwright backend.
Multiple scraping methods supported (e.g., auto, dom, or custom).
π§© 2. Template-Based Selector System
Admins can create and manage reusable scraping templates.
Each template stores CSS selectors and configurations for:
Title
Short Description
Long Description
Main Image
Gallery Images
Price and price multiplier
Scraping method (auto/manual)
π οΈ 3. Product Creation & Update
Automatically creates WooCommerce products from scraped data.
If the product already exists (based on URL), it updates the product instead of duplicating.
Stores product URL metadata in a custom database table (ajdwp_template_urls).
πΌοΈ 4. Preview Before Import
Visual preview of scraped data before creating the product.
Confirms formatting and accuracy before insertion.
π§΅ 5. Bulk URL Import
Admin UI to paste multiple product URLs.
Sequentially scrapes and creates or updates each product.
Displays live status messages for each row.
π§ͺ 6. AJAX-Driven Admin UI
Full support for AJAX interactions (no page reloads).
Sections include:
Scrape Preview
Confirm & Add
Bulk Add URLs
Template management
π§Ύ 7. Secure & Optimized
Uses nonces for all AJAX endpoints.
Escapes, sanitizes, and validates all user input.
Performance-optimized using batch operations and selective updates.
ajdwp-auto-product-maker/
βββ admin/
β βββ settings-page.php
β βββ tab1-product-scrape-form-ajax.php
β βββ tab2-product-manager-ajax.php
β βββ tab3-add-edit-template-ajax.php
βββ assets/
β βββ css/style.css
β βββ js/
β βββ admin.js
β βββ tab1-product-scrape-form.js
β βββ tab2-product-manager.js
β βββ tab3-add-edit-template.js
βββ includes/
β βββ helpers.php
β βββ product-creator.php
β βββ scraper.php
β βββ simple_html_dom.php
βββ templates/
β βββ create-db-on-activation.php
β βββ tab1-product-scrape-form.php
β βββ tab2-product-manager.php
β βββ tab3-add-edit-template.php
βββ ajdwp-auto-product-maker.php
βββ uninstall.php
βββ package.json
βββ composer.json
βββ readme.txt
π Security
β
Nonces and capability checks on all AJAX endpoints.
β Strict input sanitation using sanitize_text_field, esc_url_raw, intval, etc.
β Database operations using $wpdb->prepare() to prevent SQL injection.
π‘ Roadmap (Next Release Ideas)
π Scheduled scraping (CRON-based re-scrape)
π§ AI-based auto-selector detection (auto-suggest title, price, etc.)
π eBay/Amazon/Facebook Marketplace direct scraping integration
πΈ Auto-upload of images to Media Library or external CDNs
π¦ WooCommerce category/tags mapping per template