{"id":18675042,"url":"https://github.com/fschaeffler/lambda-web-scrapper","last_synced_at":"2025-08-27T17:18:36.508Z","repository":{"id":74447921,"uuid":"199606094","full_name":"fschaeffler/lambda-web-scrapper","owner":"fschaeffler","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-03T21:23:31.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-23T04:45:20.604Z","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/fschaeffler.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":"2019-07-30T08:10:28.000Z","updated_at":"2019-08-03T21:25:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb873cf0-73ee-4f1a-a699-967b19dbd08f","html_url":"https://github.com/fschaeffler/lambda-web-scrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fschaeffler/lambda-web-scrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschaeffler%2Flambda-web-scrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschaeffler%2Flambda-web-scrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschaeffler%2Flambda-web-scrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschaeffler%2Flambda-web-scrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fschaeffler","download_url":"https://codeload.github.com/fschaeffler/lambda-web-scrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fschaeffler%2Flambda-web-scrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272356335,"owners_count":24920286,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"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-11-07T09:22:04.326Z","updated_at":"2025-08-27T17:18:36.489Z","avatar_url":"https://github.com/fschaeffler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Lambda Web Scrapper\n\nThis web scrapper runs on AWS with a headless Chromium browser and Puppeteer.\n\n## Development Setup\n\n-   install Node.js 8.10 because this is the version being used by the Serverless service\n\n-   install yarn from https://yarnpkg.com\n\n-   install dependencies via `yarn install`\n\n-   install serverless globally via `yarn global add serverless`\n\n## Run (Local)\n\n-   run the service via `yarn serve`\n\n## Deploy (Production)\n\n-   deploy the Serverless service via `yarn deploy`\n\n-   note down the created API-key from the deployment output\n\n## Usage (Production)\n\nThe actualy endpoint URL is displayed in the deployment output. It looks like `https://\u003cGateway ID\u003e.execute-api.eu-central-1.amazonaws.com/prod/scrape`.\n\nIn order to ensure only authorized clients can call this API, an API-key is needed for the call. This key needs to get specified in the HTTP Request Header for `x-api-key`.\n\nAn exemplary call of the endpoint would look like the following one.\n\nContent of `request.json`\n\n```\n{\n\t\"url\": \"https://www.sfit.services\",\n\t\"xpathes\": [\n\t\t\"//*/div/div/div/a\",\n\t\t\"//*/div/div/div\"\n\t],\n\t\"uniqueResults\": true\n}\n```\n\n`curl -X POST -H \"x-api-key: API-SECRET-KEY\" -d @request.json https://GATEWAY-ID.execute-api.eu-central-1.amazonaws.com/prod/scrape`\n\n### Request Options\n\nThe request options get handed in as JSON-data. This data need to adhere the following structure.\n\n-   `url`: [string] The URL which should get scrapped\n\n-   `xpathes`: [array of strings] A list of XPathes of which the content should get retrieved\n\n-   `uniqueResults` (optional): [boolean] When set to `true`, only unique results will get returned\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffschaeffler%2Flambda-web-scrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffschaeffler%2Flambda-web-scrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffschaeffler%2Flambda-web-scrapper/lists"}