Most libraries post their requirements for getting a library card on their website. Some require that you live locally. Some, you only have to live in the same state. And some will give you a card that expires for a fee. Check out their websites and if you still have questions send them an email.
dordale