The best way to deal with it is get your carpets done by a carpet cleaning company ... the professional machines are 100 times better than anything you can rent / buy and they really do get rid of all smells and stains.
Probably not the answer you wanted was it?