PHP parser that parses products from the hotline.ua and adds it to the WordPress store.
Features:
- Parse a specific category/subcategory/number of products through offsets and limits
- Parsing high quality images using hotline.ua internal API
- Working with WordPress store through WooCommerce API and their PHP library
- Working with brands using Perfect WooCommerce Brands API
How to run:
- Deploy WordPress
- Install "WooCommerce" and "Perfect WooCommerce Brands" plugins
- Generate
customer key
andcustomer secret
at WooCommerce API settings and add it to the dao - Run the script by specifying the numbers of categories/subcategories/products and offsets.
A few examples. We can specify that we want to parse 1 category, its 2 subcategories with 8 products per category:
php hotlineParser.php --cn 1 --sn 2 --pn 8
. We can add the product parsing offset(5) in addition to the previous example:php hotlineParser.php --cn 1 --sn 2 --pn 8 --po 5
. Or we can just use the defaults values(5 categories x 4 subcategories x 10 products) without any offsets:php hotlineParser.php
. For more info see help:php hotlineParser.php --help
- Done! Check your WooCommerce store.
Screenshots: