Skip to content

Smarter Scraping, Easier Imports

Choose a tag to compare

@arash12javadi arash12javadi released this 02 Jul 17:41
· 15 commits to Plugin since this release

πŸ“Œ 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