Make Selenium easy to by managing a browser pool, and asyncio
compatibility!
- Source: https://github.com/munro/python-selenium-async
- Documentation: https://selenium-async.readthedocs.io/en/latest/
poetry add selenium-async
import selenium_async
def get_title(driver: selenium_async.WebDriver):
driver.get("https://www.python.org/")
return driver.title
print(await selenium_async.run_sync(get_title))
# prints: Welcome to Python.org
MIT