Scrapy selenium Loop Refresh crawling problem

I want to refresh the page once at a time, but now it"s time to grab the last refreshed page after performing the refresh

class JavaScriptMiddleware (object):

@classmethod
def process_request(cls, request, spider):
    for i in range(3):
        driver = webdriver.PhantomJS()
        sleep(3)
        driver.get(request.url)
        body = driver.page_source
        driver.quit()
        return HtmlResponse(request.url, encoding="utf-8", body=body, request=request)


Aug.23,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e97eb0-4746e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e97eb0-4746e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?