wget to save a search query with results into a text file...

I am wondering how this would be done with wget, I am trying to place the results of a search query url into a text file with each query on a new line including the next page of results, so far