I understand what everybody means. Tarantulas are hell, and due to Stupid Summer Solstice, we literally get jumpscared by them brats. Next month, we have both tarantulas and scorpions visiting us. But normally, what I do is either:
Change Ordinance - I have the Night Owl (Late Night) ordinance on, and every ordinance enacted will not stop you from getting away from tarantulas. I really didn't want to change my ordinance, but in the end it seemed that if I want to survive at night, then it's best to put the Beautiful Ordinance on. From my actual experience, the tarantulas still do come with this ordinance, but the chances of them spawning has lessened a bit. Plus, some good sides about the Beautiful ordinance is that the chance of getting weeds are rare, flowers don't wilt, villagers always plant flowers and cockroaches never appear. Also, when TTing, weeds barely even show up after a couple of years. It's great.
Time Travelling - If you are desperate not to change your ordinance for whatever reason, then just Time Travel. When it's night and you have nothing important to do, just go back in time a few hours, to the morning, afternoon or evening. Therefore, you can still play for longer without repetitively being attacked and teleported back to your home.
Doing it the hard way - Well, if you're desperate not to change your ordinance and you're desperate not to change your time, then you have to stick to the hard way. A few tips are:
-to NOT have your net out when you are going out whatsoever. Even if you are not willing to catch anything, when you walk past, the tarantula will still notice you and come sting you.
-that whenever a tarutula puts its head up, stay still. Don't move a muscle. Whenever it rears it's head, it means it's ready to attack. Be very, very careful and cautious.
-to listen closely for scratching. Tarantulas always make scratching noises, and that's one way to recognise them. When you're walking around town, be aware of the scratching. Once you hear them, then that means they're nearby.
Hope this helps.