Git Product home page Git Product logo

ebay-html's Introduction

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.txt

Usage

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                         # Mac

When you're done you can exit the virtual environment:

deactivate

ebay-html's People

Contributors

gma avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.