3 Comments

Even without server capability it is pretty good for small scraping. Thanks for sharing!

Expand full comment

Yes it's a good compromise!

Expand full comment

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?

Expand full comment