You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>🐙 <btranslate="no">SeleniumBase</b><btranslate="no">CDP Mode</b> is a stealth mode that uses the <ahref="https://chromedevtools.github.io/devtools-protocol/" translate="no">Chrome Devtools Protocol</a> (via <ahref="https://github.com/mdmintz/MyCDP" translate="no"><spantranslate="no">MyCDP</span></a>) to control the web browser. <btranslate="no">CDP Mode</b> can be used as a subset of <b><ahref="../../../help_docs/uc_mode/" translate="no"><spantranslate="no">UC Mode</span></a></b>, or via <b><ahref="#Pure_CDP_Mode" translate="no">Pure CDP Mode</a></b>, which has sync and async formats. From CDP Mode, you can make Playwright stealthy (<atranslate="no" href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/playwright/ReadMe/">Stealthy Playwright Mode</a>).</p>
@@ -2997,6 +2999,7 @@ <h3 id="youtube-tutorials-that-cover-cdp-mode">🎞️ YouTube tutorials that co
2997
2999
<p>(<b><ahref="https://www.youtube.com/watch?v=gEZhTfaIxHQ">Watch "Web-Scraping with GitHub Actions" on YouTube! ▶️</a></b>)</p>
2998
3000
2999
3001
<hr/>
3002
+
<p>ℹ️ Note the differences between <b>UC Mode</b> and <b>CDP Mode</b>:</p>
3000
3003
<p>👤 <btranslate="no">UC Mode</b>'s stealth is based on a modified chromedriver (<code>uc_driver</code>) that avoids bot-detection by disconnecting and reconnecting WebDriver from the browser at strategic times. Due to advancements in anti-bot technology, more stealth was needed to bypass advanced bot-detection. (That's where <btranslate="no">CDP Mode</b> comes in.)</p>
3001
3004
<p>🐙 <btranslate="no">CDP Mode</b> includes multiple updates to the above, such as:</p>
3002
3005
<ul>
@@ -3008,13 +3011,10 @@ <h3 id="youtube-tutorials-that-cover-cdp-mode">🎞️ YouTube tutorials that co
3008
3011
<li>Can be used to make the Playwright library stealthy.</li>
<h3id="cdp-mode-usage-when-used-as-a-subset-of-uc-mode">🐙 <btranslate="no">CDP Mode</b> Usage (when used as a subset of UC Mode):<aclass="headerlink" href="#cdp-mode-usage-when-used-as-a-subset-of-uc-mode" title="Permanent link">¶</a></h3>
<p>(Call that from a <strong>UC Mode</strong> script)</p>
3017
-
</blockquote>
3018
3018
<p>That disconnects WebDriver from Chrome (which prevents detection), and gives you access to <code>sb.cdp</code> methods (which don't trigger anti-bot checks).</p>
3019
3019
<blockquote>
3020
3020
<p>(<strong>New:</strong> Calling <strong><code>sb.open(url)</code></strong> from UC Mode also activates CDP Mode now.)</p>
@@ -2836,12 +2836,12 @@ <h3 align="center" class="hero__title"><b>Automate, test, and scrape the web —
2836
2836
<br/>
2837
2837
</p>
2838
2838
2839
-
<p><ahref="https://github.com/seleniumbase/SeleniumBase/"><btranslate="no">SeleniumBase</b></a> is an all-in-one Python framework designed to make browser automation, scraping, and testing significantly easier than using standard Selenium. With stealth options (eg.<atranslate="no" href="examples/cdp_mode/ReadMe/"><btranslate="no">CDP Mode</b></a>) you'll avoid the usual restrictions imposed by websites with bot-detection. Includes a feature that <ahref="examples/cdp_mode/playwright/ReadMe/"><b>makes <spantranslate="no">Playwright</span> stealthy</b>.</p>
2839
+
<p><ahref="https://github.com/seleniumbase/SeleniumBase/"><btranslate="no">SeleniumBase</b></a> is an all-in-one Python framework for making browser automation, scraping, and testing significantly easier. Stealth options (like<atranslate="no" href="examples/cdp_mode/ReadMe/"><btranslate="no">CDP Mode</b></a>) let you avoid bot-detection. Includes <ahref="examples/cdp_mode/playwright/ReadMe/"><b><spantranslate="no">Stealthy Playwright Mode</span></b>.</p>
2840
2840
2841
2841
<hr/>
2842
2842
<p>📚 Learn from <ahref="https://github.com/seleniumbase/SeleniumBase/tree/master/examples"><strong>over 200 examples</strong> in the <strong>SeleniumBase/examples/</strong> folder</a>.</p>
2843
2843
<p>🐙 Stealth modes: <atranslate="no" href="help_docs/uc_mode/"><b>UC Mode</b></a> and <atranslate="no" href="examples/cdp_mode/ReadMe/"><b>CDP Mode</b></a> can bypass bot-detection, solve CAPTCHAs, and call advanced methods from the <ahref="https://chromedevtools.github.io/devtools-protocol/" translate="no">Chrome Devtools Protocol</a>.</p>
2844
-
<p>ℹ️ Many examples run with raw <codetranslate="no"><b>python</b></code>, although some <ahref="help_docs/syntax_formats/">Syntax Formats</a>expect<ahref="https://docs.pytest.org/en/latest/how-to/usage.html" translate="no"><b>pytest</b></a> (a Python unit-testing framework included with SeleniumBase that can discover, collect, and run tests automatically).</p>
2844
+
<p>ℹ️ Some <ahref="help_docs/syntax_formats/">Syntax Formats</a>use<ahref="https://docs.pytest.org/en/latest/how-to/usage.html" translate="no"><b>pytest</b></a> (a Python unit-testing framework included with SeleniumBase that can discover, collect, and run tests automatically).</p>
2845
2845
<hr/>
2846
2846
<palign="left">📗 This script performs a Google Search using SeleniumBase UC Mode + CDP Mode:<br/><ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py">SeleniumBase/examples/raw_google.py</a> (Results are saved as PDF, HTML, and PNG)</p>
0 commit comments