The Story of the Barbary Corsairs by Kelley, J. D. Jerrold (James Douglas Jerrold) Lane-Poole, Stanley
 is a Project Gutenberg book, now on Github.