> search results scrape Wikipedia and return the most recent party a politician belonged to?
Google for: "what party was Andrew Jackson in"
For me this shows "Democratic-Republican Party" - this was the first party he was part of - he was elected president while a member of the Democratic party and remained such until his death: https://en.wikipedia.org/wiki/Andrew_Jackson
So your theory does not hold.
Here we have someone who was a Republican being portrayed as something else and someone who was a Democrat being portrayed as something else - and in both cases there is political benefit to Democratic party in the US.