I would feel uncomfortable enough about being shown proprietary code that I would end the interview right there. Not worth the legal risk.
Web crawlers are harmful to independent web crawling. It can be very annoying for webmasters when misconfigured, and abuse leads to honest crawlers encountering obstacles. It would probably spell the end of independent web crawling if every tom, dick and harry with a few spare raspberry pis set up their own search engine operation.