Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ronknight/export-woocommerce-products-wordpress
- Owner: ronknight
- License: mit
- Created: 2018-12-27T20:04:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-13T19:03:34.000Z (8 months ago)
- Last Synced: 2024-06-13T21:58:39.760Z (8 months ago)
- Topics: batch-scripts, chromedriver, python, selenium, woocommerce, woocommerce-products, wordpress
- Language: Python
- Homepage: http://www.pinoyitsolution.com
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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.