Well, it is probably 10, 11 years ago I did this last time using a Philips ToUcam Pro 740K. If I recall correctly I used a Linux app called qastrocam that allowed me to stream the output to obtain large number of color images that I could process via RegiStax to get high quality images of Mars, Jupiter or Saturn.
The camera also came with a windows program that allowed me to do the capture.
I still have this WEB Cam and it works fine with indi_v4l2_ccd to stream gray-scale images, but I have not been able to get the streaming to work with color images.
I did some research about qastrocam but it is apparently no longer maintained.