Could it be your new friend for your web scraping operations? Can we bypass Cloudflare or Datadome by using Botasaurus? Short answer: yes and no. Discover more on this article.
Even without server capability it is pretty good for small scraping. Thanks for sharing!
Yes it's a good compromise!
AntiDetectDriver
no modules in library. no working
From docs:
```Python
from botasaurus import *
from chrome_extension_python import Extension
@browser(
extensions=[Extension("https://chromewebstore.google.com/detail/adblock-%E2%80%94-best-ad-blocker/gighmmpiobklfepjocnamgk")],
)
def open_chrome(driver: AntiDetectDriver, data):
driver.prompt()
open_chrome()
```
```Ouput
❯ /home/puma/Development/Libgen/libgen/bin/python /home/puma/Development/Libgen/main.py
Traceback (most recent call last):
File "/home/puma/Development/Libgen/main.py", line 5, in <module>
^^^^^^^
NameError: name 'browser' is not defined
(libgen)
With some remarks:
from botasaurus.browser import browser, Driver, Wait
```Output
File "/home/puma/Development/Libgen/main.py", line 9, in <module>
^^^^^^^^^^^^^^^^
NameError: name 'AntiDetectDriver' is not defined
What need to do that works?
Even without server capability it is pretty good for small scraping. Thanks for sharing!
Yes it's a good compromise!
AntiDetectDriver
no modules in library. no working
From docs:
```Python
from botasaurus import *
from chrome_extension_python import Extension
@browser(
extensions=[Extension("https://chromewebstore.google.com/detail/adblock-%E2%80%94-best-ad-blocker/gighmmpiobklfepjocnamgk")],
)
def open_chrome(driver: AntiDetectDriver, data):
driver.prompt()
open_chrome()
```
```Ouput
❯ /home/puma/Development/Libgen/libgen/bin/python /home/puma/Development/Libgen/main.py
Traceback (most recent call last):
File "/home/puma/Development/Libgen/main.py", line 5, in <module>
@browser(
^^^^^^^
NameError: name 'browser' is not defined
(libgen)
```
With some remarks:
```Python
from botasaurus import *
from botasaurus.browser import browser, Driver, Wait
from chrome_extension_python import Extension
@browser(
extensions=[Extension("https://chromewebstore.google.com/detail/adblock-%E2%80%94-best-ad-blocker/gighmmpiobklfepjocnamgk")],
)
def open_chrome(driver: AntiDetectDriver, data):
driver.prompt()
open_chrome()
```
```Output
❯ /home/puma/Development/Libgen/libgen/bin/python /home/puma/Development/Libgen/main.py
Traceback (most recent call last):
File "/home/puma/Development/Libgen/main.py", line 9, in <module>
def open_chrome(driver: AntiDetectDriver, data):
^^^^^^^^^^^^^^^^
NameError: name 'AntiDetectDriver' is not defined
(libgen)
```
What need to do that works?