The footage, shot on a roadside in Kerala, South India, shows the man pressing on the animal's swollen stomach to release the two goats. Mirror UK reported.
Picture of a farmer squeezing goats out of snake goes viral
Picture of a man squeezing two goats out of a boa constrictor after the snake swallowed them whole goes viral.
He holds the 6ft python between his legs as shocked onlookers watch him risk his life in order to save the lives of the animals, which are a huge source of income in the area.
Amazingly, the legs of one of them appears as he continues to push the rest of its body out.
Once one of the goats is freed the other starts to give way and the man, holding onto its head, successfully manages to get both out.
A crowd gathered to watch the event and can be seen backing away from the terrifying snake.
Local News reported that despite his best efforts, the farmer didn't manage to save either goat and both of them died before they were released.
It is not known what happened to the python.
RELATED: Watch a snake vomit a live goat
JOIN OUR PULSE COMMUNITY!
Eyewitness? Submit your stories now via social or:
Email: eyewitness@pulse.ng