を得ようと

trying to obtain

→ を
phrase Rare #20,737
trying to obtain を marks what someone is trying to obtain; the phrase is usually followed by a verb describing an effort or action.
JA: 彼は名声を得ようと努力した。
EN: He worked to gain fame.

彼は自尊心を犠牲にしてまでそれを得ようとした。

He tried to obtain it even at the expense of his self-respect.

でもそれで利益を得ようとはしない

But I don't intend to profit from it.

— 甘い生活 (1960)

彼は彼女の好意を得ようと願った。

He hoped to win her favor.

彼らは自由を得ようと戦っている。

They are fighting to gain their freedom.

彼は彼女の愛情を得ようとした。

He tried to win her affection.