Get on something big that they wont attack (I use a spino cause they're awesome for swamps) and drop eggs while riding it, the snake will eat the eggs and ignore you. JUST MAKE SURE THE EGGS COME FROM YOUR INVENTORY NOT THE MOUNT

More Titanoboa Taming & KO Tips