Update Readme

This commit is contained in:
naibo 2024-02-29 16:37:54 +08:00
parent 590c9907a4
commit 7d9ae708b2
3 changed files with 10 additions and 1 deletions

View File

@ -147,6 +147,13 @@ class BrowserThread(Thread):
self.print_and_log("Loading stealth.min.js") self.print_and_log("Loading stealth.min.js")
self.browser.execute_cdp_cmd('Page.addScriptToEvaluateOnNewDocument', { self.browser.execute_cdp_cmd('Page.addScriptToEvaluateOnNewDocument', {
'source': js}) # TMALL 反扒 'source': js}) # TMALL 反扒
self.browser.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {
"source": """
Object.defineProperty(navigator, 'webdriver', {
get: () => undefined
})
"""
})
WebDriverWait(self.browser, 10) WebDriverWait(self.browser, 10)
self.browser.command_executor._commands["send_command"] = ("POST", '/session/$sessionId/chromium/send_command') self.browser.command_executor._commands["send_command"] = ("POST", '/session/$sessionId/chromium/send_command')
path = os.path.join(os.path.abspath("./"), "Data", "Task_" + str(self.id), self.saveName, "files") path = os.path.join(os.path.abspath("./"), "Data", "Task_" + str(self.id), self.saveName, "files")

View File

@ -10,7 +10,9 @@ A visual browser automation test/data collection/crawler software, which can be
[亮数据BrightData](https://get.brightdata.com/naibowang)是代理市场领导者覆盖全球的7200万IP提供真人住宅IP即时批量采集网络公开数据成功率亲测有保证。需要性价比高代理IP的可**点击上方图片注册**后联系中文客服,开通后免费试用,**最高可得250美金折扣**。BrightData可配合EasySpider进行数据采集。 [亮数据BrightData](https://get.brightdata.com/naibowang)是代理市场领导者覆盖全球的7200万IP提供真人住宅IP即时批量采集网络公开数据成功率亲测有保证。需要性价比高代理IP的可**点击上方图片注册**后联系中文客服,开通后免费试用,**最高可得250美金折扣**。BrightData可配合EasySpider进行数据采集。
[![Capsolver](media/capsolver.gif)](https://www.capsolver.com/zh?utm_source=github&utm_medium=banner_github&utm_campaign=easyspider) <a target="_blank" href="https://www.capsolver.com/zh?utm_source=github&utm_medium=banner_github&utm_campaign=easyspider"><img src="media/capsolver.jpg" width=400></img></a>
<!-- [![Capsolver](media/capsolver.jpg)](https://www.capsolver.com/zh?utm_source=github&utm_medium=banner_github&utm_campaign=easyspider) -->
[Capsolver.com](https://www.capsolver.com/zh?utm_source=github&utm_medium=banner_github&utm_campaign=easyspider)是一家基于人工智能提供自动验证码解决功能的服务商。支持的验证码类型包括reCAPTCHA、hCaptcha和FunCaptcha、AWS captcha、Geetest、Akamai Web、BMP、Imperva/Incapsula、captcha图像识别等。Capsolver可配合EasySpider进行验证码识别。 [Capsolver.com](https://www.capsolver.com/zh?utm_source=github&utm_medium=banner_github&utm_campaign=easyspider)是一家基于人工智能提供自动验证码解决功能的服务商。支持的验证码类型包括reCAPTCHA、hCaptcha和FunCaptcha、AWS captcha、Geetest、Akamai Web、BMP、Imperva/Incapsula、captcha图像识别等。Capsolver可配合EasySpider进行验证码识别。

BIN
media/capsolver.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB