Might be easier to find an object that will sit on top of a spring and let you tie a piece of string which you can pass through the center of the spring and tie a weight to, therefore hanging down and compressing the spring. Measure the length vs the original uncompressed length.
You need a piece of string in there somewhere!