I’m sure video surveillance coupled with saved browser activities is recorded at libraries especially because that’s where the criminals and other kiddy porn sickos are likely to do the creepy searches.
He could have used a VPN which would have made it more difficult to trace his browsing without having physical access to his computer.