Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
munro committed Apr 7, 2022
0 parents commit 6a69d42
Show file tree
Hide file tree
Showing 21 changed files with 2,330 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__pycache__/
.DS_Store
.venv/
*.pyc
build/
dist/
geckodriver.log
10 changes: 10 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
build:
os: ubuntu-20.04
tools:
python: "3.10"
sphinx:
configuration: source/conf.py
python:
install:
- requirements: requirements.txt
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# selenium-async

Make Selenium easy to by managing a browser pool, and `asyncio` compatibility!

- Source: [https://github.com/munro/python-selenium-async](https://github.com/munro/python-selenium-async)
- Documentation: [https://selenium-async.readthedocs.io/en/latest/](https://selenium-async.readthedocs.io/en/latest/)

## install

```bash
poetry add selenium-async
```

## usage

```python
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
```

## license

MIT
Loading

0 comments on commit 6a69d42

Please sign in to comment.