How do I create a program that reads text and searches for the number of occurences on the internet? [on hold]

I am trying to create or have a bot made that can do the following:

  1. Take a screen-shotted image and the text
  2. Read the top portion of the text as the question that needs to be answered and the bottom portion as the possible answers.
  3. Take this text and search it on the internet to see which of the answers occur the most in the search results.
  4. Then state which answer is the correct one all in 10 seconds time.

I have learned how to program swift 3 but I’m not sure if that language is ideal for this kind of bot. I have also researched this kind of bot and have found examples where it is possible (This is what i found, ), but the creator will not reach out to me and let me know how they did it and which language they used.

I am not sure how hard it is to make a bot like this. but if you are able to, could you please guide me through it. Or if you are nice enough, create it for me and let me know how to run it on my computer.

Thanks for any help!