Generally speaking, I find that the more expensive a rare academic tome is, the more likely there are legal/etc. versions online (PDFs, HTML, DjVu, etc.), indexed by Google. That seems to be much more true for STEM texts than those of the humanities, though.