I can give you some advice. If you want to get rid of fleas in the carpet, it is best to seek the help of professionals in this field, as specialists can use a neat cleaning. The fact is that you can overdo it with the amount of substances of folk remedies and spoil the carpet in the hope of making it better and getting rid of fleas. So I once ruined a great large rug that I bought on DorisLeslieBlau. I was very sad, so don't repeat my mistakes.
And the second step is to machine wash your carpet in hot and soapy water to remove fleas.