changed the user agent randomization to keep a list of useragents used for successful searches, and re-use them if the same query is made, so that the cache is used as much as possible