Green anacondas are known to eat pigs and peccaries (which resemble pigs and can get to about the weight of a smaller mini-pig).
Snakes have an incredible ability to stretch their jaws and stomachs (though contrary to popular belief they don’t actually unhinge their jaws, they just stretch them), so if they can eat animals several times wider than they are.