Feat : installation script & readme update
This commit is contained in:
+8
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user