I have done this by putting the shaft and a come-along between a tractor and truck.
Yours may take the tractor pull. In any case, do not use rope, but use chain. Rope stretches and will recoil, along with anything tied to it, both ends.
I believe that I would check the cost for a new shaft...