For anyone who might be tempted to fall for the guilt-tripping about authors, text books rarely generate any income for their authors and most would be happy to open source them (as many do nowadays). They're interested in getting useful materials out there (and the name recognition that comes from having their name on useful texts). They do not rely on book sales to make a living.
You should not feel guilty about pirating text books but you can help the authors out by asking your library to stock the text, borrowing it if your library has it (even if you've pirated a copy for keeps), and recommending it to others (with text that will show up on searches) if you found it useful.
Not to mention academic/research text where authors are actually forced to pay to publish, only to have the articles end up behind a pay wall of given journal. If the authors want their papers freely available, they have to pay extra fees to the journal (we are talking thousands of dollars scale). Not a cent goes back to the authors or even research funding bodies. Long live Libgen!