What are the ways to get rabies?

Rabid animals. Normally, you get it from being bitten by an animal with rabies. Spelunkers (people who explore caves) can also get it from inhaling the bat guano (feces) in the cave.