Closed sanjeethboddi closed 5 months ago
yield scrapy.Request( url, meta={ 'playwright': True, 'playwright_include_page': True, 'playwright_page_methods':[ ... PageMethod("click", selector='#export > ul > li > button'), # downloads csv file ... ], 'errback': self.errback, })
This page method downloads the file but it's not accessible. I want to save the downloaded file even after the program terminates.
I assume the click triggers a download, please try handling the download event with playwright_page_event_handlers
download
playwright_page_event_handlers
Got it 👍
This page method downloads the file but it's not accessible. I want to save the downloaded file even after the program terminates.