Don't use a sword or any melee weapon because it breaks them and keep a distance and bring a long range weapon and if you hate bugs especially when they to the point of being a footipede instead of a centipede then that will always work but watch out for others too!
Found in almost every caves except the underwater , Lava and Snow (they don't like extreme weather I guess) easiest taming methods lure it into water and let it sink to bottom, no oxygen stat so won't drown, go and feed it spoiled meat, tame it , put a saddle and get out :)
I once encountered this pretty much rare creature in the cave of the hunter. I had a metal shield with full durability and it was destroyed by two or three spits(easy mode btw). Obviously it was bye-bye metal shield. One thing I noticed though is that they are a bit like the titanoboa just with a spit added and could be killed with a pike. If you have a good movement speed level.