Minecraft wiki entry for Cave_spider_farming, associated text: One of the few ways to kill cave spiders without the player's aid is by placing iron golems in the collection chamber of the cave spiders. Place hoppers along the floor, all eventually connecting to a double chest. The iron golems will kill the cave spiders, and the loot will fall into the hoppers and go into the chest.