maaaaz / webscreenshot

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

Cookie parameter ignored when using chrome as engine #27

Closed coldib closed 5 years ago

coldib commented 5 years ago

Using this command does not work, as the option -c seems to be ignored:

webscreenshot -v -r chromium --no-xserver -c COOKIE "JSESSIONID=1234; YOLO=SWAG" http://grim.at/tmp/cookie.php

Looking in the source code it seems as if the option is only present using phantomjs - can you please fix this?

Thanks in advance! Wolfgang

maaaaz commented 5 years ago

Hello,

Unfortunately I'm not aware of any cookie option for headless chrome/chromium. But you are right that currently webscreenshot options are misleading, some are only available for certain renderers.

Cheers.

maaaaz commented 5 years ago

I just added a table mapping option supported to renderers: https://github.com/maaaaz/webscreenshot#supported-options-by-renderers