The author explicitely states on his site that all of his books are available for free on:
The Green Tea Press page for this book links to OP's link on GitHub Pages to read online, but I'll provide it below anyway, if anyone wants to go searching for his other books:
https://greenteapress.com/wp/data-structures-and-information-retrieval-in-python/