https://onezeronull.com/2017/03/07/save-search-results-to-file/
Save search results to file