Skip to content

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

License

Notifications You must be signed in to change notification settings

ronknight/export-woocommerce-products-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published