Thank you for this @webber, it does seem to be pulling hex codes. I'm having one issue though:
I need all of the data in the table presented on that PaintRef.com website, but for the "Sample" column, I need it to pull the hex code for the cell, not the text inside the cell. Using the sitemap script you provided, I added a table data selector, but when it gathers the data, the hex code values aren't lining up with the rows of data from the table.
Here's the sitemap code I used. Browse the data file it produces, it seems to be producing blank cells in the "hex" column:
{"_id":"test","startUrl":["https://paintref.com/cgi-bin/colorcodedisplay.cgi?make=Infiniti&con=k&page=13&rows=50"],"selectors: [{"id":"hex","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":"center > table[cellpadding] tr:nth-of-type(n+2) td[align]","multiple":true,"extractAttribute":"bgcolor","delay":0},{"id":"tabled","type":"SelectorTable","parentSelectors":["_root"],"selector":"table[cellpadding]:nth-of-type(4)","multiple":true,"columns":[{"header":"image","name":"image","extract":false},{"header":"[year]","name":"[year]","extract":true},{"header":"make","name":"make","extract":true},{"header":"model","name":"model","extract":true},{"header":"paint color name","name":"paint color name","extract":true},{"header":"code","name":"code","extract":true},{"header":"sample","name":"sample","extract":true},{"header":"Ditzler PPG","name":"Ditzler PPG","extract":false},{"header":"Dupont","name":"Dupont","extract":false},{"header":"RM BASF","name":"RM BASF","extract":false},{"header":"Glasurit","name":"Glasurit","extract":false},{"header":"comment","name":"comment","extract":false}],"delay":0,"tableDataRowSelector":"tr:nth-of-type(n+2)","tableHeaderRowSelector":"tr.head"}]}