Cook and mince them by crushing in a can. More acceptable dried on hot rocks and then ground into a powder with which to enrich soups and stews. The large types of worms particularly are eaten in many countries. The white wood burrowing Larvae of Beetles is usually found in rotten logs. Remove the head, thorax and legs and eat.
Maggots are good to eat too.
Both aquatic or terrestrial snails are an excellent source of food when obtainable.