If you run the liquid through a container of known volume and weight with very flexible connections (to avoid affecting the weight measurement), and weighed the container electronically (strain-gauge scale for example), then you could calculate the weight of the liquid and therefore it's specific gravity on a continuous basis.
Edit: If you wanted to rapidly measure the liquid as it changed then you could run it through a coil of pipe of known or measured volume, and measure its weight