Weekend Project - Rustoleum Spray Paint Hex Code Scraper

It's snowing pretty hard so I decided to make a script to parse Home Depot's site for Rustoleum Painters Touch 2x spray paint Hex color codes
February 10th, 2019  by Blaine Garrett

Last winter, I started experimenting with HTML 5 Canvas to see what sort of image manipulations I could do in browser. Suprisingly, a lot could be done. It was pretty exciting to tinker with. I've been doing dev for a long time and it's really hard any more to get me really excited about new programming things. I'll post more on this later.

I do a lot of multilayer stencil artwork, and one of my experiments was to quantize an image to colors of Rustoleum Painter's Touch 2x I have in the garage. While going down this path, I discovered that Home Depot's lists the hexadecimal color codes for a lot of their spray paint. I manually copy/pasted the hex codes from their site to build my palette. However, I've been meaning to write a script to do it.

Between shovelling sessions, I decided to take a stab at it with node. After only a few hours, I had a simple script to scrape the product page, extract the color name, the hexcode, and the finish and store it into a json file. 
Neat! As it sits, there are 43 colors in the json database. More to come. 


Check out the Paint Scraper source code or check out the db of scraped colors.