Unfortunately this script has become essentially deprecated and unsupported as streeteasy now uses distil networks to prevent bots from scraping data
A potential but ultimately manual workaround is to start a search, save the results as an html file, and supply that file in the code instead