Closed sonnd9x closed 1 year ago
I'm trying using this driver and trying to load a product url, but request was detected by shopee and faced with captcha.
var prefs = new Dictionary<string, object> { ["webrtc.ip_handling_policy"] = "disable_non_proxied_udp", ["webrtc.multiple_routes_enabled"] = false, ["webrtc.nonproxied_udp_enabled"] = false, ["profile.default_content_setting_values.geolocation"] = 1 };
var createOptions = () => { var options = new ChromeOptions(); options.AddArgument("--mute-audio"); options.AddArgument("--app=https://shopee.vn"); options.AddArgument("--no-sandbox"); options.AddArgument($"--user-agent={UserAgentHelper.RandomUserAgent()}"); options.AddArgument("--disable-gpu"); options.AddArgument("--disable-dev-shm-usage"); return options; }; var driver = UndetectedChromeDriver.Create( driverExecutablePath: await new ChromeDriverInstaller().Auto(), options: createOptions(), prefs: prefs, hideCommandPromptWindow: true, suppressWelcome: true);
driver.GoToUrl("https://shopee.vn/X%C4%83ng-%C4%91an-cho-b%C3%A9-i.521941408.15097126535");
I'm trying using this driver and trying to load a product url, but request was detected by shopee and faced with captcha.
var prefs = new Dictionary<string, object> { ["webrtc.ip_handling_policy"] = "disable_non_proxied_udp", ["webrtc.multiple_routes_enabled"] = false, ["webrtc.nonproxied_udp_enabled"] = false, ["profile.default_content_setting_values.geolocation"] = 1 };
var createOptions = () => { var options = new ChromeOptions(); options.AddArgument("--mute-audio"); options.AddArgument("--app=https://shopee.vn"); options.AddArgument("--no-sandbox"); options.AddArgument($"--user-agent={UserAgentHelper.RandomUserAgent()}"); options.AddArgument("--disable-gpu"); options.AddArgument("--disable-dev-shm-usage"); return options; }; var driver = UndetectedChromeDriver.Create( driverExecutablePath: await new ChromeDriverInstaller().Auto(), options: createOptions(), prefs: prefs, hideCommandPromptWindow: true, suppressWelcome: true);
driver.GoToUrl("https://shopee.vn/X%C4%83ng-%C4%91an-cho-b%C3%A9-i.521941408.15097126535");