A script to automatically generate a checkout link from a csv of Shopify product IDs.
python gen.py <filename>
to generate a Shopify cart link using the given file.
Line 1 contains the BASE url to the site, for example https://osume.com/
.
The remaining lines are the variant IDs of the product and their corresponding quantities, with each line of the form <variant_id>,<quantity>
. Defining quantities is optional, if no quantity is defined, it will default to 1.
- implement better cli argument parser (using a library?)
- enable pasting of entire product link instead of just the variant id
- validate that the base url of all product links are the same (validation for above improvement)