A man who was caught on video stalking and attacking a mayoral intern outside her Queens home is a wannabe stand-up comic — done in by tipsters who recognized him from his YouTube footage, authorities said Sunday.

Christopher Prusa, 34 — who has performed at Midtown’s Caroline’s on Broadway comedy club — tried to strike up a conversation with the 21-year-old woman a few blocks from her Woodside home around 3:50 a.m. Friday, cops said.

“Hey, can I talk to you?” he asked, according to court documents.

The woman said she ignored Prusa and kept walking home, but as she was unlocking the door to her apartment building, “she looked behind her shoulder’’ and Prusa was suddenly there and grabbed her arm, the papers say.

As Prusa urged the terrified victim to “Chill out,” she eventually fought him off and ran to safety, according to the papers.

Investigators released surveillance video of the harrowing incident — and before long, callers reached out to Crime Stoppers saying they recognized the suspect as Prusa from his web clips, police sources said.

Detectives then learned that Prusa was trying to sell his used Hyundai, and they set up a meeting with him under the guise of being prospective buyers, according to sources.

When the aspiring stand-up arrived for the meet-up Saturday evening, cops moved in to make the bust, sources said.

Prusa was initially arrested on charges including attempted rape and sexual abuse. But prosecutors at his Sunday morning arraignment ended up charging him with stalking, attempted assault, and harassment, court papers show.

He was also charged for possession of cocaine and pot. Authorities say they found three Ziplock baggies with coke inside, one with marijuana and a pot pipe in the center console of the Hyundai he was trying to sell.

Prusa was remanded to Rikers Island in lieu of $2,500 cash bail or $5,000 bond.

His last listed address is in Port St. Lucie, Florida, but social-media accounts indicate that he has been living in New York City for about a year.

Those accounts listed him as a home-furnishings consultant at a south Brooklyn Raymour & Flanigan and a former public-school teacher in Port St. Lucie. Raymour & Flanigan said Prusa had not worked for the company since March.

They also include photos of Prusa performing stand-up in various venues, including at Caroline’s.

In addition, he auditioned for TV’s “America’s Got Talent,’’ according to his Facebook.

The victim — whose name is being withheld by The Post because of the nature of the crime — was identified by police sources as an intern in Mayor de Blasio’s office.

She told The Post on Sunday that she found little comfort in knowing that her alleged assailant is off the street.

“I just want it to be over. I don’t want to talk about it,” she said. “I feel very uncomfortable with everything that happened.”

Additional reporting by Kevin Sheehan, Larry Celona and Tina Moore