Closed
Description
Our systems have detected unusual traffic from your computer network. forwarding to https://google.com/sorry i cant search it.
with SB(browser="firefox", # Specify Firefox
uc=True,
headless=config.HEADLESS_BROWSER,
# test=True, # Not typically needed for general scripting, SB handles test context.
proxy=proxy_for_sb,
agent=random_user_agent,
user_data_dir=user_data_dir_path, # For Firefox, this is the profile directory
# Removed chromium_arg
# extension_zip=None, # Removed, was for Chrome
firefox_opts={"args": firefox_args_list, "preferences": firefox_prefs_dict} if firefox_args_list or firefox_prefs_dict else None,
pls="none", # pageLoadStrategy
ad_block_on=True, # Enable AdBlock
) as sb:
# Initial blank page navigation - good practice
print(f"[Worker {worker_id}] Navigating to about:blank first...")
sb.open("about:blank")
utils.human_delay(500, 1000)