{"id":22293005,"url":"https://github.com/smallstepman/puppeteer-real-browser-dockerized","last_synced_at":"2026-06-15T21:31:44.050Z","repository":{"id":260293759,"uuid":"880892385","full_name":"smallstepman/puppeteer-real-browser-dockerized","owner":"smallstepman","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-26T23:06:22.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-16T03:04:54.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/smallstepman.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":"2024-10-30T14:53:08.000Z","updated_at":"2024-11-26T23:06:25.000Z","dependencies_parsed_at":"2024-10-30T15:47:52.653Z","dependency_job_id":"abd377aa-0f16-4b71-a1fe-2b4886d5bace","html_url":"https://github.com/smallstepman/puppeteer-real-browser-dockerized","commit_stats":null,"previous_names":["smallstepman/puppeteer-real-browser-dockerized"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smallstepman/puppeteer-real-browser-dockerized","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstepman%2Fpuppeteer-real-browser-dockerized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstepman%2Fpuppeteer-real-browser-dockerized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstepman%2Fpuppeteer-real-browser-dockerized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstepman%2Fpuppeteer-real-browser-dockerized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallstepman","download_url":"https://codeload.github.com/smallstepman/puppeteer-real-browser-dockerized/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstepman%2Fpuppeteer-real-browser-dockerized/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34381759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-12-03T17:26:54.524Z","updated_at":"2026-06-15T21:31:44.033Z","avatar_url":"https://github.com/smallstepman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Puppeteer Real Browser Scraper\n\nThis project allows you to scrape web pages using Puppeteer wrapped in a Docker container. It supports two modes: **Command-Line Mode** \u0026 **HTTP Server Mode**\n\n## Installation \n\nPull the Docker Image:\n```bash\ndocker pull ghcr.io/smallstepman/puppeteer-real-browser-dockerized:latest\n```\n\n## Usage\n\n### Command-Line Mode\nScrape a URL and output the HTML to the console:\n\nUsage (console):\n```bash\ndocker run ghcr.io/smallstepman/puppeteer-real-browser-dockerized:latest http://example.com\n```\n\nUsage (python):\n```python\nimport subprocess\n\ndef scrape_url(url):\n    try:\n        result = subprocess.run(\n            ['docker', 'run', 'ghcr.io/smallstepman/puppeteer-real-browser-dockerized:latest', url],\n            stdout=subprocess.PIPE,\n            stderr=subprocess.PIPE,\n            text=True,\n            check=True,\n            timeout=5\n        )\n    except subprocess.CalledProcessError as e:\n        print(e)  \n    else: \n        html_output = result.stdout\n        return html_output\n\nprint(scrape_url('http://example.com'))\n```\n\n### HTTP Server Mode\nRun an HTTP server that accepts POST requests to scrape URLs:\n```bash\ndocker run -p 3000:3000 ghcr.io/smallstepman/puppeteer-real-browser-dockerized:latest serve\n```\n\nUsage (console):\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"url\":\"http://example.com\"}' http://localhost:3000/scrape\n```\n\nUsage (python):\n```python\nimport requests\n\ndef scrape_url_via_api(url):\n    response = requests.post('http://localhost:3000/scrape', json={'url': url})\n    response.raise_for_status()\n    return response.text\n\nprint(scrape_url_via_api('http://example.com'))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallstepman%2Fpuppeteer-real-browser-dockerized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallstepman%2Fpuppeteer-real-browser-dockerized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallstepman%2Fpuppeteer-real-browser-dockerized/lists"}