Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ronknight/export-woocommerce-products-wordpress

Make Python do the boring stuff for you, This will automate the exporting of all your woocommerce products.
https://github.com/ronknight/export-woocommerce-products-wordpress

batch-scripts chromedriver python selenium woocommerce woocommerce-products wordpress

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

Export WooCommerce Products from WordPress


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.










Prerequisites
Installation
Usage
Acknowledgment
Diagrams

---

## 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:

```python
driver.get('https://yourwordpresssite.com/wp-admin')
id_box.send_keys('your-user-name')
pass_box.send_keys('your-password')
```

2. Save the changes to the Python file.
3. 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.