May-28-2022, 10:20 AM
When using code as it is, the execution fails:
This way it worked ... but Chrome browser opens. Can it be avoid ?
Returning to the blocking issue ... if I understood you correctly, the selenium approach has a kind of blocking immunity ?
Another question ... blocking problem aside, does using the BeautifulSoap approach allow us to find the title so easily by searching for "productTitle" ?
Output:[WDM] - ====== WebDriver manager ======
[WDM] - Current google-chrome version is 102.0.5005
[WDM] - Get LATEST chromedriver version for 102.0.5005 google-chrome
[WDM] - Driver [/home/pavel/.wdm/drivers/chromedriver/linux64/102.0.5005.61/chromedriver] found in cache
Traceback (most recent call last):
File "/home/pavel/python_code/explore_Amazon_book_search_selenium.py", line 48, in <module>
browser = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
TypeError: __init__() got an unexpected keyword argument 'service'
Then I suppressed install staff from browser instantiation, i.e. browser = webdriver.Chrome().This way it worked ... but Chrome browser opens. Can it be avoid ?
Returning to the blocking issue ... if I understood you correctly, the selenium approach has a kind of blocking immunity ?
Another question ... blocking problem aside, does using the BeautifulSoap approach allow us to find the title so easily by searching for "productTitle" ?