Deductions & credits

The answer here is probably no, regardless of whether you were a W-2 employee or independent contractor.  

1. Your mileage from home to your regular workplace and back again is never deductible; if you worked at both placed on the same day, the mileage between would usually be deductible.  The hotel and library are your regular places of work, at least for the time being.

2. As an employee, that deduction was eliminated for 2018-2025 by the tax reform act.  As a contractor, that mileage is not allowed for reason #1.