Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gma/ebay-html
Generate formatted HTML that works well on eBay listings
https://github.com/gma/ebay-html
ebay html-generator
Last synced: 28 days ago
JSON representation
Generate formatted HTML that works well on eBay listings
- Host: GitHub
- URL: https://github.com/gma/ebay-html
- Owner: gma
- Created: 2021-07-12T18:24:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T17:54:44.000Z (4 months ago)
- Last Synced: 2024-07-23T20:59:25.559Z (4 months ago)
- Topics: ebay, html-generator
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
README
======I use the script in this project to create eBay listings with HTML that looks good on eBay. I've found eBay's default typography to be unnecessarily hard to read, quite unfriendly, and suspect items sell better if their descriptions are:
- typeset in a sans-serif font,
- at a larger size than the default, and
- in dark blue.I've found that adding `style` attributes to my markup to be the best way to ensure that eBay doesn't meddle with my styles. Hand coding the HTML would, however, be a royal pain in the ass. So I write my listings in Markdown and use this script to generate the HTML.
Install
-------All you need is the Python-Markdown library, which you can install in a virtual environment like this:
# Create a virtual environment
python -m venv .venv
source .venv/bin/activate
activate# Install dependencies
pip install --upgrade pip
pip install pip-tools
pip-sync requirements.txtUsage
-----Markdown is read on stdin and HTML is printed on stdout. To use the HTML in your eBay listing, paste it into the "HTML" tab of the "Item description" field in your eBay listing.
Assuming you're in the virtual environment created above you can run the script like so:
./ebay-html < file.md > file.html
If you'd like to copy the HTMl to your clipboard for pasting it into your eBay listing you could use `xclip` on Linux or `pbcopy` on Mac:
./ebay-html < file.md | xclip -i -selection clipboard # Linux
./ebay-html < file.md | pbcopy # MacWhen you're done you can exit the virtual environment:
deactivate