If it has a screen, Bad Apple will be played. And Spore is no exception.
Source code is visible here:
https://github.com/VanillaCold/Spore-BadApple
There's no download for the mod itself, since it's essentially a proof-of-concept and also causes a memory leak, so it crashes with a video that's too long.
(in fact, the 4 GB Patch is needed to even play Bad Apple in its entirety.)