Spam number script request

Can the following be scripted:
*copy selected phone number in iPhone’s recent call list
*paste and search in safari
*Wait for user input
*option to switch to phone and block number or create new contact from number.

Is the Safari search about looking to see if the number has been reported as a spammers?

Wouldn’t something like NomoRobo (there are others) be better? These services specialize in tracking spam numbers and, optionally, blocking them? My phone has been very calm since I configure NomoRobo to zap the spammers on my behalf.