I didn't find any satisfactory answer about this. All I want is just set the viewport to 1080*19200 (yes, 1920 * 10) before the request to simulate a screen of that size.
Is this even possible using Scrapy Playwright? If so, how do i do that?
I didn't find any satisfactory answer about this. All I want is just set the viewport to 1080*19200 (yes, 1920 * 10) before the request to simulate a screen of that size.
Is this even possible using Scrapy Playwright? If so, how do i do that?
There are multiple ways of doing this:
viewportargument, which can be used in thePLAYWRIGHT_CONTEXTSsetting:Page.set_viewport_sizefrom a page init callback:PageMethod: