bellingcat / auto-archiver

Automatically archive links to videos, images, and social media content from Google Sheets (and more).
https://pypi.org/project/auto-archiver/
MIT License
489 stars 53 forks source link

Selenium headless not working - workaround to force 4.12.0 #103

Closed djhmateer closed 7 months ago

djhmateer commented 8 months ago

Have found that when I did a pipenv update then ran the code on my local machine, the firefox browser would display briefly. However on the server (with no terminal attached) it couldn't, so errored out, not producing a screenshot

In my Pipfile I've added this for the meantime which works as before

#selenium = "*"
# bug where it renders to screen on 4.15.0, and fails on the server
selenium = "==4.12.0"
GalenReich commented 8 months ago

Great issue Dave, thanks for flagging this. This is probably due to a change to how Selenium handles headless mode. It should have been raising a deprecation warning before.

djhmateer commented 7 months ago

Thank you very much Galen for fixing this!