There are specialized carpet cleaning products for this that are widely available in stores. For the ones that I am familiar with, you spray it onto the dirty area, brush it into the carpet, let it dry, then vacuum it up.
There are larger machines that one can rent for "shampooing" the entire carpet area, which is something that ought to be done regularly. There are also professional services that do this.
I'd rather just have a rug that you can take outside and beat the dirt out of.
You don't. You buy a vacuum cleaner!
But the sticky things, how you get them off then?
Say your dog shat on the carpet, or you spilled something oily, or jam, or whatever.
Just wipe it with a baby wipe and forget what happened. That’s probably not the “right” way to do it but there’s a reason I refuse to have carpets
There are specialized carpet cleaning products for this that are widely available in stores. For the ones that I am familiar with, you spray it onto the dirty area, brush it into the carpet, let it dry, then vacuum it up.
There are larger machines that one can rent for "shampooing" the entire carpet area, which is something that ought to be done regularly. There are also professional services that do this.
I'd rather just have a rug that you can take outside and beat the dirt out of.
It's the same as cleaning car seats. You use a machine to shampoo them.