Police searched the area and found a 23-foot reticulated python lying close to Akbar’s garden, according to The Jakarta Post.
The reticulated python is the longest in the world, and has been known to grow to lengths of up to 32 feet.
Akbar’s boots could clearly be seen in the snake’s stomach, the Post reported, quoting media outlet Tribun Timur.
Residents of the village cut the snake open with a big knife and found Akbar’s body inside.
Tribun Timur posted a video that showed the cutting.
Villagers heard cries emanating from a palm grove the previous night, village secretary Salubiro Junaidi told the Post.
Mack Ralbovsky, left, of the Rainforest Reptile Shows, gets assistance from Vermont game wardens Tim Carey, center, and Wes Butler as they remove a reticulated python, between 17 and 18 feet long, from the home of Pat Howard Tuesday, Aug. 25, 2015, in North Clarendon, Vt.
Pythons of this length don’t normally roam in human settlements, Brawijaya University’s Nia Kurniawan told BBC.
But they do often hunt for prey such as wild dogs or boars. A palm oil plantation would attract such animals, he said.
These snakes attack their prey by latching on with dozens of teeth and then squeezing them to death before they’re swallowed whole.
- With files from The Associated Press