Open egh opened 1 year ago
in centos system comment code about "chrome_cdp, edge" of html2image.py works for me:
from html2image.browsers import chrome # , chrome_cdp, edge # , firefox, firefox_cdp
browser_map = {
'chrome': chrome.ChromeHeadless,
'chromium': chrome.ChromeHeadless,
'google-chrome': chrome.ChromeHeadless,
'googlechrome': chrome.ChromeHeadless,
# 'edge': edge.EdgeHeadless,
# 'chrome-cdp': chrome_cdp.ChromeCDP,
# 'chromium-cdp': chrome_cdp.ChromeCDP,
# 'firefox': firefox.FirefoxHeadless,
# 'mozilla-firefox': firefox.FirefoxHeadless,
# 'firefox-cdp': firefox_cdp.FirefoxCDP,
}