Uber’s disastrous year has been good for Lyft investors.

San Francisco-based Lyft — a rival ride-hailing app that has largely sidestepped the scandals that have tarnished Uber’s reputation — has lately watched investors scramble for its privately traded shares, pushing secondary market prices to all-time highs.

Investors are buying shares of Lyft’s pre-IPO stock for as high as $29 or $30 a share, two brokers who completed recent deals told The Post. In April, Lyft shares had been changing hands for around $22.

Lyft demand is so high that there is very little difference between common shares and preferred ones, which have voting rights and can be worth more, one broker said.

“There’s a lot of demand for Lyft stock,” Larry Albukerk, founder and managing partner at EB Exchange, told The Post. “For everything Uber seems to be doing wrong, they seem to be doing right.”

While Uber Chief Executive Travis Kalanick has long cultivated a hostile stance toward cities that have resisted Uber’s expansion, Lyft CEO Logan Green founded the company with a civic-minded ambition to ease city traffic congestion.

“They really are the complete inverse,” Albukerk said. “I think that will eventually be reflected in their stock price.”

Shares on secondary markets, which typically aren’t transparent as they are on public exchanges, typically trade at a 20 percent to 30 percent discount of whatever the latest funding round was. For Lyft, recent demand has narrowed that discount to about 10 percent or less, one broker said.

Lyft was valued at $7.5 billion in April, when it raised $500 million in its most recent funding round. Shares were priced at about $32 a pop then, one broker said.

Gauging how Uber —which is around $69 billion— is faring is not as easy. The company restricts trading on secondary markets by giving Kalanick the first option to buy the stock, and taking away voting rights from a whole allotment if even one share is sold.

However, interest in special funds that hold the shares haven’t really waned, even if it had been light to begin with, sources said.

“The negative news on Uber did not take away from investor interest in Uber, but it added to investor interest in Lyft,” a broker said.

Lyft didn’t return a request to comment.

Uber’s Kalanick took a leave of absence on Tuesday after years of sexual harassment accusations and legally questionable spying tactics became public.

That same day, during an all-hands company meeting to discuss a report by former AG Eric Holder on Uber’s sexual harassment problems, board member David Bonderman made a sexist crack about how women talked too much. He resigned later that day.

As if that weren’t enough, a woman who was raped by an Uber driver in India sued the company for a second time on Thursday, claiming top Uber executives got hold of her private medical records in order to defame her.

While this year was bad for Uber, Lyft quietly expanded into more than 90 new US cities by February, bringing the total to around 300. Uber is in more than 500 around the world.