A Lucta Civil Brazileira e o Sebastianismo Portuguez by Costa, José Soares da Cunha e
 is a Project Gutenberg book, now on Github.