To collect eggs, build a 2 room pen (Dino gates work great as walls and dividers). Agro a bunch of TBs and lead them to one side of the pen then trap them in. Lead them back and forth between the sides as they drop eggs.
If you are near a swamp you will eventually run into one of these. Make sure to have stim berries in your hot bar for escaping these monsters. They quickly counter the poison so you dont pass out and become easy prey
If you are at a higher level and you have a longneck rifle expecially one with more than 100% damage use it from a little ways away and you can kill them easily. Then walk up to them and harvest them.
If you dont have the longneck rifle i suggest dont go near them, but if you are a savage and want to kill one take your pike or spear hit it then run. Then turn around with any ranged weapon and just keep shooting. If you dont have a ranged weapon i suggest you not trying to kill one because a few hits and you are going to die.
Pro tip if you are in the swamp water at night time you are going to die because you can’t take out your torch so snakes will be right in front of you and you won’t know until they start attacking. Then you get knocked out and you slowly drown and get eaten. You know what just don’t go in the water
It's best to keep them at range with a bow or crossbow, don't try and knock them out at all. Be wary of how quick they can sneak up on you at all times near their spawn locations. Make sure you keep stimberries on your hot bar so that way you can still access them if you get bit by a Titanoboa as they will usually knock you out. Upgrading your fortitude can help counteract this so be sure to put some levels into your fortitude early on. Titanoboa's are easy to outpace but be very wary as they can climb over most obstacles so don't bother thinking your safe by hiding behind a rock or a steep slope. Killing these guys is pretty simple with any ranged damaging weapon, just run a couple of steps, turn around and fire, repeat. Make sure you keep an eye on your stamina as it can be easy to forget about it during a battle, running out of it allows the Titanoboa to catch up to you pretty quickly so manage it correctly.
In order to gather eggs you meed to build this building in the swamp, anywhere else will not work. Best way to get them is get a behemoth gate and make two rooms on either side using stone fence foundations and doorways, but do not place the actual door in the door way this tricks the game into thinking they are in an open space (if they are in a closed area they will not lay eggs). These doorways need to be three tall or the can clime over and escape. Once you get your cage, be aware when you drop them in they can still stick there heads through and bite you. Now that you have your snakes in your pit, leave out of render distance for about two minutes then come back, once you come back, there is a chance an egg was laid. Open the behemoth gate and lead the snakes to the other side then lock them in there by closing the gate. You can now safely retrieve your egg.
If you're going into a cave with a tribemate and you know the cave has Titanboas, bring a raptor, and just have the raptor ahead of the person on foot, it can one hit almost every Boa, and poison doesn't affect your raptorr as badly.