Hagrid didn't get Norbert from a book. He received the dragon egg as a gift from a friend who bred dragons and thought Hagrid would enjoy the “pet.” This occurred before Hagrid attended Hogwarts.