cobble something together vs do something on the spur of the moment

cobble something together

do something on the spur of the moment

How often have the words cobble something together and do something on the spur of the moment occurred in a corpus of books? (source: Google Ngram Viewer )