Use a butter knife to scrape the beans off the carpet. Apply gentle pressure to release bean juice and all of the food from the carpet. Blot the carpet with an absorbent rag -- don't rub the carpet, as rubbing will force the beans into the carpet fibers and backing material. Work from the center of the beans to the outside edges of the spot. Continue gently rubbing the butter knife across the spot until no more bean juice comes up from the carpet to blot away.
Mix 1 pint barely warm water, 1 teaspoon gentle liquid soap and 1 teaspoon white vinegar in a bucket. Wring out a rag in the mixture -- check that the rag isn't dripping. Making the spot too wet makes it more difficult to remove and can cause the bean residue to spread. Dab the bean spot, working from the center to the outside edge in each direction. Use gentle pressure and don't rub. Rinse the rag well and repeat. Check that the water runs clear when you rinse the rag. Continue dabbing away the bean residue until the rinse water runs clear when you rinse the rag. Change to a fresh rag, if needed.
Dab the carpet spot with a fresh rag and plain water. Dab at the entire wet area from the center to the edges to rinse the soap mixture out of the carpet. Blot the carpet with a dry towel. Allow the spot to dry. Repeat the stain-removal process, if necessary.