@shewolfnm,
If you catch the spill when it's fresh, you've got a good chance of removing it totally. Consider these tips, too:
Carefully blot or scrape the entire area before applying any cleaning solution. Remove as much of the spill as possible.
Before using any cleaning solution, test your carpet in an inconspicuous area to make sure the cleaner won't damage or discolor it. Test the cleaning agents that you keep on hand before you have to use them to make sure they will not harm your carpet.
Do not rub the spill -- that might spread the problem to a larger area.