/selenium-appointment-check

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

README

Current test run with docker-compose up

Prerequesites

Install chromedriver into this directory or somewhere else in PATH.

Remote WebDriver

docker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-chrome
driver = webdriver.Remote(
    command_executor='http://localhost:4444',
)

Look at it with browser on http://localhost:7900/, password secret.

Ipython Notebooks in Git

Remeber to put the following filter into the repo's config:

[filter "nbstrip_full"]
        clean = "\"jq\" --indent 1 \
                '(.cells[] | select(has(\"outputs\")) | .outputs) = []  \
                | (.cells[] | select(has(\"execution_count\")) | .execution_count) = null  \
                | .metadata = {\"language_info\": {\"name\": \"python\", \"pygments_lexer\": \"ipython3\"}} \
                | .cells[].metadata = {} \
                '"
        smudge = cat
        required = true

And also

*.ipynb filter=nbstrip_full

into .gitattributes.

Install jq somewhere into PATH, if necessary.