I read a fiction book about a tiny black hole getting caught in the planets gravity well then falling threw Earth back and forth just fucking stuff up every time. Scary stuff.
Earth by Brin
Hyperion Cantos by Simmons
Ilium by Simmons
Doomsday Effect by Thomas Wren
If I thought for a few more minutes I could probably come up with a half dozen examples (or expanded the definition to include eating the moon or mars, or included ones where it would be a massive spoiler)...
A gravitationally captured/trapped black hole eating earth is relatively common plot device in science fiction.