Douglas Harper's Etymology Dictionary
snollygoster
1846, American English slang, fanciful coinage.
Wiktionary
snollygoster
n. (context slang obsolete English) A shrewd person not guided by principles, especially a politician