{"id":13826843,"url":"https://github.com/Antoinebr/Puppeteer-Service","last_synced_at":"2025-07-09T02:32:29.112Z","repository":{"id":41798198,"uuid":"159081291","full_name":"Antoinebr/Puppeteer-Service","owner":"Antoinebr","description":"A service to get different informations from a given website thanks to Puppeteer","archived":false,"fork":false,"pushed_at":"2023-01-03T17:00:15.000Z","size":997,"stargazers_count":7,"open_issues_count":18,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-05T09:15:42.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Antoinebr.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}},"created_at":"2018-11-25T22:37:39.000Z","updated_at":"2020-07-20T21:36:22.000Z","dependencies_parsed_at":"2023-02-01T08:00:36.526Z","dependency_job_id":null,"html_url":"https://github.com/Antoinebr/Puppeteer-Service","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/Antoinebr%2FPuppeteer-Service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antoinebr%2FPuppeteer-Service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antoinebr%2FPuppeteer-Service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antoinebr%2FPuppeteer-Service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antoinebr","download_url":"https://codeload.github.com/Antoinebr/Puppeteer-Service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225480967,"owners_count":17481129,"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":[],"created_at":"2024-08-04T09:01:45.271Z","updated_at":"2024-11-20T06:30:24.929Z","avatar_url":"https://github.com/Antoinebr.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Puppeteer Service\n\nA service to get different informations from a given website thanks to Puppeteer\n\nMore endpoints and features to come\n\n## How to start\n\n```make build \u0026\u0026 make run```\n\n\n## API\n\n### Get the third party for a given domain\n\n```bash\n\ncurl -X GET 'http://localhost:3001/get3p?url=https://www.renault.fr/' \\\n  -H 'Content-Type: application/json'\n\n```\n\nReturns :\n\n```shouldntBeBlocked``` is equal to everything but marketing tags, so you find CDN...\n\n```JSON\n{\n    \"shouldBeBlocked\": [\n        \"netmng.com\",\n        \"googleadservices.com\",\n        \"google-analytics.com\",\n        \"googletagmanager.com\",\n        \"facebook.net\",\n        \"youtube.com\"\n    ],\n    \"shouldntBeBlocked\": [\n        \"sc-static.net\",\n        \"ytimg.com\",\n        \"yimg.com\",\n        \"googleapis.com\",\n    ]\n}\n```\n\n### Get the code coverage of a given url\n\n```bash\ncurl -X GET 'http://localhost:3001/coverage?url=https://www.renault.fr/' \\\n  -H 'Content-Type: application/json'\n```\n\nRetuns :\n\n(The response example is truncated )\n\n```JSON\n\n{\n    \"summary\": {\n        \"domcontentloaded\": {\n            \"percentUsed\": 17,\n            \"totalUsedBytes\": \"796KB\",\n            \"totalBytes\": \"4,659.5KB\"\n        },\n        \"load\": {\n            \"percentUsed\": 39,\n            \"totalUsedBytes\": \"2,711.4KB\",\n            \"totalBytes\": \"6,967.8KB\"\n        },\n        \"networkidle0\": {\n            \"percentUsed\": 39,\n            \"totalUsedBytes\": \"2,764.1KB\",\n            \"totalBytes\": \"7,038KB\"\n        }\n    },\n    \"urls\": [\n        {\n            \"cssUsed\": 0,\n            \"jsUsed\": 0,\n            \"usedBytes\": 0,\n            \"totalBytes\": 4186,\n            \"percentUsed\": 0,\n            \"eventType\": \"domcontentloaded\",\n            \"url\": \"https://libs.cdn.renault.com/etc/designs/renault_v2/18.13.1.RENAULT-7/common-assets/css/fonts/fonts-latin-basic.min.css\",\n            \"summary\": \"0 bytes/4.1KB (0%)\"\n        },\n        {\n            \"cssUsed\": 0,\n            \"jsUsed\": 12727,\n            \"usedBytes\": 12727,\n            \"totalBytes\": 41338,\n            \"percentUsed\": 31,\n            \"eventType\": \"networkidle0\",\n            \"url\": \"https://c.la1-c1-lon.salesforceliveagent.com/content/g/js/35.0/deployment.js?_=1543409239150\",\n            \"summary\": \"12.4KB/40.4KB (31%)\"\n        }\n    ]\n}\n```\n\n### Get a mobile screenshot \n\n```bash\n\ncurl -X GET 'http://localhost:3001/screenshot?url=https://www.renault.fr/'\n\n```\n\nReturns : the image \n\n\n\n## Deploy this image ?\n\n### You can use Google Cloud Run \n\n\nDeploy the image :\n\n```\ngcloud builds submit --tag gcr.io/\u003cnameOfYourGCPProject\u003e/puppeteer-service\n```\n\nDeploy the image :\n\n```\ngcloud beta run deploy --image gcr.io/\u003cnameOfYourGCPProject\u003e/puppeteer-service --memory=1Gi\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAntoinebr%2FPuppeteer-Service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAntoinebr%2FPuppeteer-Service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAntoinebr%2FPuppeteer-Service/lists"}