Hi. I am so sorry that you have had such terrible experiences. I hope that you felt able to report the rape, and that you have had appropriate counselling. That's the first and most important thing to say.
Sadly , you refer to them as your male friends, when in fact they were never friends in any true sense at all. Are you completely up front from the start with them that you are a lesbian? Are you, for want of a better term, a 'lipstick lesbian', ie resembling their stereotype of a heterosexual woman rather than a stereotypical lesbbian, so that they don't quite believe you can be completely gay? Not that that excuses their actions in any way, nor to say that you have provoked them.
I suspect you are relatively young, and some younger men unfortunately can often not see further than the end of their dicks on far too many occasion especially after few drinks on a night out.
If you seek male company can you find it in a mixed group of friends, or get to know some gay guys? Gay guys come in all shapes and sizes, and from macho to camp! Perhaps take up a class or hobby which men like as well, so you might find a guy you have something in common with. And try not to put yourself in a vulnerable position with anyone until you have complete confidence in them.
As a lesbian myself, I have gone through exactly the same shit in my younger days, including what would now be considered rape but would have been completely dismissed fifty plus years ago. It made me despise men.
Now that I am old, experienced and self confident, I am lucky to have a heterosexual guy, a family man, twenty years my junior, from the other side of the world, as one of my closest and most trusted friends. For some random reason we just love each other! Men can be great.