I have been using a product named 'Tuff Stuff' for many years. The product is very versatile and highly rated. Like others have mentioned good brushes and micro-fiber towels will help aid the process.
Once completed do not hesitate to spray your carpets with a Scotchguard.
Hope this helps ....