Managing a CSV file with the API (Python)
-
Hello, I come to you because I do not have a good understanding on some points.
I want to develop a Python script that reads a CSV file and complete the database with the WooCommerce API.
https://github.com/woocommerce/woocommerce/wiki/Product-CSV-Import-Schema#csv-columns-and-formatting
Based on the information on the link above, the data of the same field are separated by commas but a CSV already separates all these fields with commas so is it that for each CSV, the separator must be passed on a semi-colon?
Yet it doesn’t seem to interfere?Still based on the same site, what can we do if the customer wants to add more information on his CSV?
For example, if I detect a category that does not exist in the database, then I will create it but if he wants to include additional information directly in the CSV (image/description/parent” of the category)My problem I think is that I can’t see how I can adapt to a lot of providers with different columns or information that I can’t handle like an incomprehensible column name, a column data that doesn’t conform to the expected one, and other.
Thank you for your help if you can enlighten me on the subject
- The topic ‘Managing a CSV file with the API (Python)’ is closed to new replies.