A "danger to women" who raped a sleeping stranger after walking into her home at night was caught trying door handles while on bail.
Gerard Cooper, 39, let himself into his victim's home in Dingle in 2018 and went upstairs where he raped her.
But after he was granted bail in the face of a rape charge Cooper went back to the area where she lived late at night and attempted to get into homes.
During Cooper's sentencing on Friday at Liverpool Crown Court, Arthur Gibson, prosecuting, explained that police received a report of a male "acting suspiciously late at night" while "trying door handles".
It was only after the report to police that Cooper was remanded into custody.
Cooper, of Croxteth Grove, Toxteth, was convicted of rape after a jury trial on September 17 this year.
He was handed a 12 year prison sentence by Judge David Swinnerton yesterday.
The judge recounted how he had "spent the afternoon having pints and playing snooker" and had taken cocaine before the horrific assault.
Receive newsletters with the latest news, sport and what's on updates from the Liverpool ECHO by signing up here.
Judge Swinnerton summarised that the victim "woke up to find you, a stranger to her, was having sex with her.
"She was half asleep, tipsy and not fully conscious."
The judge said: "There was no disturbance to any of her property. You had clearly seen her in the evening and was aware she was alone.
"You let yourself in through the front door, unfortunately, that was insecure, you were able to walk in.
"You went straight upstairs where you raped her. You trespassed into her home with the intention of raping her."
A statement read in court heard how his victim said: "The sheer horror of what happened to me still feels like something from a nightmare, as I struggle to imagine how another human being can be capable of such a crime."
Enter your postcode below to read news in your area
She added: "Since learning of his name, I‘ve never been able to repeat it out loud yet it runs through my head every single day."
Paul Lewis, defending, said: "It will be of some little and trite comfort at this stage that Mr Cooper has at least in part recognised having a trial was a fool's errand and he was living through denial and an inability to face up to what he had done."
As well as receiving a custodial sentence Cooper was also put on the Sex Offenders Register for life and an indefinite restraining order was put in place preventing him from approaching or contacting his victim.
Support for victims is also available through the registered charity the Rape and Sexual Abuse Support Centre Cheshire and Merseyside, who can be contacted on 01925 221 546 or 0330 363 0063 or Rape and Sexual Assault Merseyside (RASA) on 0151 558 1801.
Anyone with information or wants to report sexual offence allegation is asked to call 101 where you will be spoken to by specially trained officers or you can pass information to Crimestoppers anonymously on 0800 555 111.