How to make search on any webpage with searchbox?

Hello! I just can’t figure out how to make shortcut which will:

  1. take buffer content
  2. open particular site which have searchbox
  3. paste content there and hit search
    The main difficulty is I can’t understand how to get access to search box and paste content there.