3 ms·
This isn’t anywhere near as impressive as some of the examples here, but anyway: I run an Etsy store that sells artwork. One of the most time-consuming tasks w
by mattkevan 5y ago
This isn’t anywhere near as impressive as some of the examples here, but anyway:
I run an Etsy store that sells artwork. One of the most time-consuming tasks was creating the mock-ups for product listings, so I wrote a shell script that used Imagemagick to automatically generate all the images.
I was pretty pleased as I’d never written a Bash script before and it saves hours and hours of work.
I also wrote a Ruby script that uses the Etsy API to generate a fully-working Jekyll e-commerce site from my Etsy store’s listings. Much better that paying Shopify plus a bunch of other apps for pretty much the same thing.
- itsinthenews 5y agoNice I like the Etsy Ruby + Jekyll idea. Is the repo open source?
- mattkevan 5y agoYes, it's open source. Here's the link [1]. I'm sure there's some sort of rule against posting code this bad on HN, bit worried it'll get my hacker status revoked :). Was a total Ruby n00b when I wrote this (still am) - haven't even worked out how to handle offsets in the Etsy API. Anyway, it does a good job of creating Jekyll collection items from Etsy listings – here's the site I'm building with it, though it's still a work-in-progress [2]. [1] https://github.com/MattKevan/Etsy-API-to-Jekyll https://github.com/MattKevan/Etsy-API-to-Jekyll [2] https://dev.thedoveandtheseagull.com https://dev.thedoveandtheseagull.com
- weaksauce 5y agofor what it is and does it's pretty alright... I mean it's a simple script to munge some data and there isn't much more you need to do with it. you don't need fully well thought out full object oriented solution with a bunch of error handling and stuff for a scraper doing 100 records at a time. one nit is that ruby generally doesn't use tabs and only uses 2 spaces.