{"id":14036826,"url":"https://github.com/testdrivenio/selenium-grid-docker-swarm","last_synced_at":"2025-07-27T04:32:19.884Z","repository":{"id":30105609,"uuid":"123342598","full_name":"testdrivenio/selenium-grid-docker-swarm","owner":"testdrivenio","description":"web scraping in parallel with Selenium Grid and Docker","archived":false,"fork":false,"pushed_at":"2023-05-23T03:29:40.000Z","size":21,"stargazers_count":35,"open_issues_count":2,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-13T03:05:50.098Z","etag":null,"topics":["docker","docker-swarm","selenium","selenium-grid","selenium-webdriver","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testdrivenio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-02-28T21:07:12.000Z","updated_at":"2024-04-25T07:14:22.000Z","dependencies_parsed_at":"2024-04-16T08:43:33.780Z","dependency_job_id":null,"html_url":"https://github.com/testdrivenio/selenium-grid-docker-swarm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fselenium-grid-docker-swarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fselenium-grid-docker-swarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fselenium-grid-docker-swarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fselenium-grid-docker-swarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testdrivenio","download_url":"https://codeload.github.com/testdrivenio/selenium-grid-docker-swarm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227762285,"owners_count":17816003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-swarm","selenium","selenium-grid","selenium-webdriver","webscraping"],"created_at":"2024-08-12T03:02:15.488Z","updated_at":"2024-12-02T16:30:45.295Z","avatar_url":"https://github.com/testdrivenio.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Concurrent Web Scraping with Selenium Grid and Docker Swarm\n\n## Want to learn how to build this project?\n\nCheck out the [blog post](https://testdriven.io/concurrent-web-scraping-with-selenium-grid-and-docker-swarm).\n\n## Want to use this project?\n\n1. Fork/Clone\n\n1. Create and activate a virtual environment\n\n1. Install the requirements\n\n1. [Sign up](https://m.do.co/c/d8f211a4b4c2) for Digital Ocean and [generate](https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-api-v2) an access token\n\n1. Add the token to your environment:\n\n    ```sh\n    (env)$ export DIGITAL_OCEAN_ACCESS_TOKEN=[your_token]\n    ```\n\n1. Spin up four droplets and deploy Docker Swarm:\n\n    ```sh\n    (env)$ sh project/create.sh\n    ```\n\n1. Run the scraper:\n\n    ```sh\n    (env)$ docker-machine env node-1\n    (env)$ eval $(docker-machine env node-1)\n    (env)$ NODE=$(docker service ps --format \"{{.Node}}\" selenium_hub)\n    (env)$ for i in {1..8}; do {\n             python project/script.py ${i} $(docker-machine ip $NODE) \u0026\n           };\n           done\n    ```\n\n1. Bring down the resources:\n\n    ```sh\n    (env)$ sh project/destroy.sh\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestdrivenio%2Fselenium-grid-docker-swarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestdrivenio%2Fselenium-grid-docker-swarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestdrivenio%2Fselenium-grid-docker-swarm/lists"}