maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
653 stars 162 forks source link

openSquat #79

Open atenreiro opened 1 year ago

atenreiro commented 1 year ago

hey @maaaaz

While searching for Github screenshot libraries, I bumped into this. Can this code be reused for openSquat for multi-platforms?

maaaaz commented 1 year ago

Hello @atenreiro,

Well technically you can, but even if webscreenshot works, it needs the deprecated phantomjs tool for full option support. Or, headless browsers, but with limited options. You can find info in the FAQ : https://github.com/maaaaz/webscreenshot/wiki/FAQ

Then I recently discovered the playwright library, which should give better results than my current implementation for headless browsers. Maybe one day I will integrate it into webscreenshot.

I also recently discovered this project shot-scraper which implements playwright.

So feel free to test different tools, as some might be better than webscreenshot.

Cheers !