{"id":25332609,"url":"https://github.com/ubidots/docker-selenium-screenshot","last_synced_at":"2026-02-20T15:32:31.824Z","repository":{"id":40461673,"uuid":"258579299","full_name":"ubidots/docker-selenium-screenshot","owner":"ubidots","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-22T07:27:10.000Z","size":24,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-07-29T10:52:46.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ubidots.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}},"created_at":"2020-04-24T17:31:51.000Z","updated_at":"2024-03-29T18:05:11.000Z","dependencies_parsed_at":"2023-01-30T06:00:38.590Z","dependency_job_id":null,"html_url":"https://github.com/ubidots/docker-selenium-screenshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ubidots/docker-selenium-screenshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubidots%2Fdocker-selenium-screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubidots%2Fdocker-selenium-screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubidots%2Fdocker-selenium-screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubidots%2Fdocker-selenium-screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubidots","download_url":"https://codeload.github.com/ubidots/docker-selenium-screenshot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubidots%2Fdocker-selenium-screenshot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29655307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-02-14T04:52:46.082Z","updated_at":"2026-02-20T15:32:31.807Z","avatar_url":"https://github.com/ubidots.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-selenium-screenshot\n\nContainer for taking screenshots using selenium\n\n\n## Allowed arguments\n1. **url**: the URL of the page to take the screenshot\n2. **file_name**: Name of the image which will be saved (e.g `/path/of/my/image.png`)\n3. **width**: Initial width for the browser\n4. **height**: Initial height for the browser\n5. **app_selector_xpath** (*optional*): XPath selector for search the target content in the DOM. Default `//div[@id='root']`\n6. **not_load_selector_xpath** (*optional*): XPath selector when it can't find the content. Default `div[contains(@class, 'selenium-data-not-loaded')]`\n7. **timeout** (*optional*): The time to wait until the content load. Default `10s`\n\n**Note**: Every argument is positional, each one must be sent in the order described above.\n\n\n## Usage\nTo build the container, execute:\n```\n# Switch to Dockerfile path\ncd docker-selenium-screenshot\n\n# Run docker build\ndocker build --tag \u003ctag name\u003e .\n```\n\nThe container has a volume where it will put the screenshots took `tmp/assets`\n\n```\ndocker run -v /tmp/assets:/tmp/assets -v /dev/shm:/dev/shm \u003ctag name\u003e \u003curl_param\u003e \u003cfile_name_param\u003e \u003cwidth_param\u003e \u003cheight_param\u003e \u003capp_selector_xpath_param\u003e \u003cnot_load_selector_xpath_param\u003e\n```\n\ne.g\n```\ndocker run -v /tmp/assets:/tmp/assets -v /dev/shm:/dev/shm \u003ctarget-name\u003e https://ubidots.com /tmp/assets/ubidots.png \"1000\" \"500\" \"//body\" \"//target\"\n```\n\n**Note**: When executing docker run include `-v /dev/shm:/dev/shm` to use the host's shared memory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubidots%2Fdocker-selenium-screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubidots%2Fdocker-selenium-screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubidots%2Fdocker-selenium-screenshot/lists"}