/export-woocommerce-products-wordpress

⬇️Make Python do the boring stuff for you, This will automate the exporting of all your woocommerce products.

Primary LanguagePythonMIT LicenseMIT

This Python script, along with a batch file, automates the process of exporting WooCommerce products from a WordPress website using Selenium and the Chrome browser.

PrerequisitesInstallationUsageAcknowledgmentDiagrams


Prerequisites

  • Python 3.7.1
  • Selenium 1.22
  • ChromeDriver 2.24.1
  • Google Chrome

Installation

  1. Clone or download the repository.
  2. Install the required Python packages by running pip install -r requirements.txt.
  3. Download the appropriate version of ChromeDriver for your Chrome browser and operating system from the official website: https://sites.google.com/a/chromium.org/chromedriver/downloads
  4. Extract the ChromeDriver executable and place it in a directory that is included in your system's PATH environment variable.

Usage

  1. Open the export-woocommerce-products-wordpress.py file and update the following lines with your WordPress website credentials and admin URL:
driver.get('https://yourwordpresssite.com/wp-admin')
id_box.send_keys('your-user-name')
pass_box.send_keys('your-password')
  1. Save the changes to the Python file.
  2. Double-click the Run.bat file or run it from the command prompt to execute the script.

The script will open the Chrome browser, navigate to your WordPress admin dashboard, log in using the provided credentials, navigate to the WooCommerce products page, and initiate the export process. The exported CSV file will be downloaded to your default downloads folder.

Acknowledgments

Selenium - The web automation tool used in this project. ChromeDriver - The WebDriver used to automate the Chrome browser.