I wrote a Chrome plugin to double check the price per kg for online groceries as the values provided by my supermarket are basically fiction.
Are the $/kg incorrect? So you take the price and divide by weight?
Yes, and normalize it to price per kg. The product weight needs to be extracted from the item title or description in many possible formats (100G, 100 g, 100 grams), the price location and format however is uniform.