scrapy-playwright icon indicating copy to clipboard operation
scrapy-playwright copied to clipboard

Windows WSL scrapy-playwright chromium headful mode not working

Open gelodefaultbrain opened this issue 1 week ago • 1 comments

Hi!

Apologies if I am not writing this correctly. But I just wanted to raise this issue. I am currently running a scrapy spider on my Windows machine, particularly in WSL. When I run the program I am getting this. Please see image attached.

image

As you can see, it's just like that. We can see the browser (chromium) exists by looking at the sides of it but at the middle it's completely blank. Like you can see through it. Weird thing is the spider runs successfully and I am able to scrape the data I want accordingly. May I ask what could be the solution for this? Do we need to install something that is a dependency requirement?

Additional Information: Just wanted to add that I tried switching to "firefox" and it worked well. I can clearly see what is happening. I tried it with "webkit" as well but it's the opposite of "chromium" , the middle part is completely white. But using all the browsers I am able to scrape the data gracefully.

My custom settings:

    custom_settings = {
        "PLAYWRIGHT_LAUNCH_OPTIONS": {
            "headless": False,
            "slow_mo": 9000,
        },
    }

Thank you!

gelodefaultbrain avatar Jun 27 '24 12:06 gelodefaultbrain