Feat : installation script & readme update

This commit is contained in:
martin legrand
2025-03-13 15:52:37 +01:00
parent 0315d8e67f
commit b7eaee6b34
6 changed files with 134 additions and 2 deletions
+8 -1
View File
@@ -12,8 +12,15 @@ import logging
import sys
class Browser:
def __init__(self, headless=False):
def __init__(self, headless=False, anticaptcha_install=False):
"""Initialize the browser with optional headless mode."""
self.headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.9',
'Referer': 'https://www.google.com/',
}
self.anticaptcha = "https://chrome.google.com/webstore/detail/nopecha-captcha-solver/dknlfmjaanfblgfdfebhijalfmhmjjjo/related"
try:
chrome_options = Options()
if headless: