Summarize this article:

Use the vacuum hose with an extender and floor attachment to get a deep reach under the bed. If you have other furniture in your room with space underneath it, clean these spaces as well. For example, if you have a bookshelf or chest of drawers that doesn’t go all the way to the ground, that empty space will need to be vacuumed. Use a vacuum cleaner set on the hardwood setting to clean any dust and dirt off the floor first. Mop the floor with a mop and commercial hardwood cleaner to clean and polish the floor.  Commercial hardwood floor cleaners are usually available to purchase at most grocery stores. If your vacuum cleaner doesn’t have a hardwood floor setting, you can also use a broom and dustpan to clean the floor. Pour a thin amount of baking soda across the surface of your floor if it’s carpeted and let it sit for 5 minutes before vacuuming. Vacuum the floor once in each direction (i.e., once going horizontally and once going vertically) to make sure you clean all of the baking soda off of the floor. The baking soda will help remove any odors that have accumulated in your carpet fibers. Mix equal parts of hot water and dish soap in a spray bottle, then spray this mixture onto the stain. Use a clean cloth to blot the stain and transfer the colored liquid from the carpet fibers to the cloth. Continue blotting this way until the stain is completely gone.  You may need to switch to a second clean cloth if the stain is too large for your first cloth to handle. If this mixture of dish detergent and water doesn’t do the trick, use a mixture of unscented ammonia and water instead.

Summary:
Use vacuum extensions to vacuum underneath the bed. Vacuum and mop the floor if you have hardwood floors. Sprinkle baking soda into the carpet, then vacuum it twice. Use dish detergent and hot water to treat carpet stains.