As we have talked about before, all snakes are carnivores. There is however an exception to this in the egg eating snake, known scientifically as the Dasypeltis scabra whose diet consists exclusively of eggs. In the video above, you will see a snake devouring an egg in one gulp. In less than two minutes, this snake has managed to completely ingest a large egg. At the end of the video, you will see the snake spit out something from its mouth. The process for a snake consuming an egg is very intricate. After wrapping its mouth around the egg and ingesting it, the snake will flex its muscles causing the egg to push into the bony protrusions on their spine resulting in the egg shell collapsing on itself. From here, the snake will carefully squeeze out and extract every last bit of liquid in the egg and afterwards regurgitate the shell, which is what you see happening at the end of the video at the 2:05 mark.
While the egg eating snake is the only snake known to feast exclusively on eggs, there have been instances of chicken farmers reporting problems with snakes eating their chicken eggs. To prevent this from happening, farmers will replace chicken eggs with light bulbs, golf balls, and other object that resemble eggs. This eventually results in the snakes not coming back for eggs.