{"id":18708583,"url":"https://github.com/va1da5/selenium-celery-worker","last_synced_at":"2025-10-17T12:32:17.230Z","repository":{"id":106645887,"uuid":"331716095","full_name":"va1da5/selenium-celery-worker","owner":"va1da5","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-21T18:24:40.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-07T12:28:51.671Z","etag":null,"topics":["celery","docker","firefox","selenium-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/va1da5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-01-21T18:22:10.000Z","updated_at":"2024-11-04T09:01:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4f3dc95-5b5f-4378-b377-97f061b034b5","html_url":"https://github.com/va1da5/selenium-celery-worker","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/va1da5%2Fselenium-celery-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fselenium-celery-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fselenium-celery-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fselenium-celery-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/va1da5","download_url":"https://codeload.github.com/va1da5/selenium-celery-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231598661,"owners_count":18398218,"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":["celery","docker","firefox","selenium-python"],"created_at":"2024-11-07T12:24:03.691Z","updated_at":"2025-10-17T12:32:12.201Z","avatar_url":"https://github.com/va1da5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selenium + Celery\n\nThis is a minimal project to test possibility of running Selenium with Firefox in a container and expose this functionality as Celery task.\n\nThe current setup contains simple capture of rendered HTML page content by loaded Javascript. Additionally, it uses a different User-Agent with each request. Lastly, the page is opened in a private tab meaning that cookies and other data do not persist between requests.\n\n## Get Started\n\n1. Install local Python dependencies\n\n    ```bash\n    make install\n    ```\n\n2. Create local variables files\n\n    ```bash\n    make .env\n    ```\n\n3. Pull required container images\n\n    ```bash\n    make pull\n    ```\n\n4. Build Celery worker container image\n\n    ```bash\n    make build\n    ```\n\n5. Start containers\n\n    ```bash\n    make start\n    ```\n\n6. Test task execution on a remote worker\n\n    ```bash\n    python exec_remote_task.py -u http://google.com\n    ```\n\n## References\n\n-   [Selenium with Python](https://selenium-python.readthedocs.io/)\n-   [SeleniumHQ/docker-selenium](https://github.com/SeleniumHQ/docker-selenium)\n-   [Celery.send_task()](https://docs.celeryproject.org/en/stable/reference/celery.html#celery.Celery.send_task)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fva1da5%2Fselenium-celery-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fva1da5%2Fselenium-celery-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fva1da5%2Fselenium-celery-worker/lists"}