Enchanted books can be obtained through various methods, including fishing, trading with villagers, looting dungeons, temples, or strongholds, and combining books in an enchantment table.