After sitting in the colander for a while and then patting them down with a paper towel, you might find that the shredded potato and onion might be dry enough. If not, you can wrap them up in some cheesecloth, a tea towel, or a dishcloth, and give them a good tight squeeze.