... without getting electrocuted?

Answer:
The birds sit touching only one line and nothing else through which electricity can flow to the ground. This means no current flows through the bird’s body.

So can I get electrocuted if I touch a power line?

Answer:
YES!!! And here is an example to explain why.

You are out flying your kite and it gets away from you. The kite ends up in the power lines. No harm comes to the kite, much like the bird. But once you get involved in trying to recover the kite danger occurs. If you use a pole of some sort to knock the kite down, the pole becomes a conductor of electricity. When the pole touches the kite, the current flows through the kite into your body and then to the ground. Your body cannot handle such a massive shock and can result in death.

Don’t make a mistake. Play it safe around electricity.