A woman who had to be rescued after scaling a construction crane in Toronto last year has been granted an absolute discharge after pleading guilty to two mischief counts.

Marisa Lazo, 23, who came to be known on social media as "Crane Girl," was stranded for hours after climbing a crane at a downtown construction site in the middle of the night in April.

It's believed she went up the crane, crawled out onto the end of it, and slid down a cable to a large pulley device where she got stranded.

The rescue was watch widely on television and social media. Lazo came to be known as 'Crane Girl.' (Frank Gunn/Canadian Press)

In dramatic fashion, Lazo was rescued by a firefighter who climbed up the crane and then rappelled the towering machinery with her.

Lazo was charged with six counts of mischief by interfering with property and was released on bail with several conditions, including staying away from construction sites and rooftops.

Lazo pleaded guilty to two mischief counts and has been given six months to pay a victim surcharge. A spokesperson for the Ministry of the Attorney General says the remaining charges were withdrawn.