def create_and_perform_query(queryText, results, start_point): # Perform the query # First, create the search engine client se = SearchEngine() # Second, set the query se.set_query(queryText) # Third, set the paging (get full 100, start with the given point) se.set_paging(100, start_point) # Fourth, set filtering # TODO: Missing filtering # Five, perform the query se.perform_query() # Six, get the results res = se.get_results() # Put it to the queue results.put(res) # Give some info on what has happened so far end_point = start_point+100 print(str(start_point) + " - " + str(end_point) + " results parsed")