Pick up the purple mushroom in the screen where the spider waits. Back in the first screen, knock the branch out of the corner, then use it to bring down the beehive — and step aside fast. Approach the fallen hive cautiously; when the symbols appear, use the mushroom to deal with the bees, then soak the doll in honey.
Return to the spider and come at it from the left or the right. When prompted, drop the doll. The spider grabs for it, gets thoroughly stuck, and leaves you alone.