Police arrested San Jose resident Mohammad Khaliqi, 31, Friday afternoon without incident in San Leandro.
The suspect has been identified as Mohammad Khaliqi.
He was booked into the Santa Clara County Jail on suspicion of multiple counts of burglary, attempted sexual assault and false imprisonment.
Khaliqi altered his appearance and it's different than what was originally captured by security cameras.
The suspect was wanted in connection with two attempted sexual assault cases on separate females in the last two months.
On Tuesday, the man followed the girl as she walked home from school. Police responded to the girl's home in the 4000 block of Rio Vista Avenue and she told investigators he had forced his way through the front door of her home as she went inside. She fought him off and he fled before police arrived.
PHOTOS: SJ police say girl attacked by predator at home
The girl then locked the door after he left, hid in a closet and texted her father: "DADDY COME HOME NOW. SOME GUY TRIED TO RAPE ME."
Police say they received more than 100 tips from the public, many who saw the video on social media, and they were able to use that information to track him down.
"All the credit belongs to the citizens who called in with those tips, without their help it would've been difficult to arrest the suspect within 48 hours," San Jose Deputy Chief Shawny Williams said.
On April 2, the same suspect is believed to have followed a 28-year-old woman into a public restroom at a grocery store and reportedly tried to sexually assault her. null