The song (recitation, actually) is THE BARKING CREEK BELL-RINGER'S DAUGHTER and the text has been posted here.
It has to be the right one because it mentions "octopuses" and "flag-e-olation."
There is a character named Algernon in it, but his last name is Stout. I have no idea where "Pide" comes from.