The villagers initially thought the giant snake, which was resting by the river, was just an old log before one of them touched the serpent, triggering it into action.
Python 'from India' captured in forest on Lahore's outskirts
The November 22 video, shot by villager Ronal Efendi Coto, shows the man fighting as others try to pry him loose from the python's notorious death grip.
After calling for help and managing to subdue the serpent, the men put it into a cage in Pucuang Anam village in Sumatra and asked a local zoo for assistance.
But the zoo declined to take in the python, citing overcapacity.
"For now we are just keeping it in the cage so people can come and have a look", Coto told AFP, adding that the snake was eight metres (26 feet) long.
Watch: 16-foot-long python rescued in Sheikhupura
Pythons are some of the largest snakes in the world, but are not known to measure more than seven metres in the wild.
In June, an Indonesian woman was found dead inside in the belly of a giant python after it was captured near where she vanished while tending her vegetable garden on Sulawesi island.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ