- Python
- python-amazon-simple-product-api (pip install...)
- An Amazon affililate account (for Associate Tag)
- For HTML: jinja2 templating system for Python (pip install...)
- For Jekyll/YAML: A Jekyll installation for generating the static HTML
-
python barcode.py < barcode.csv > index.html
This will output a HTML file based on the template index.html.template (requires Jinja2 - pip install jinja2)
-
python barcode.py < barcode.csv > html/index.md
This output is a YAML frontmatter section that can be parsed by Jekyll/Liquid.
-
cd html
-
jekyll build - this puts everything into _site. Copy that to your webserver. Bootstrap 3.2 is included for styling.
An example barcode.csv file is supplied. This format is from the free/awesome ZXing Android app Barcode Scanner. Only the first column is needed, which is a UPC or EAN code from the scanner.