{"id":21875149,"url":"https://github.com/mfbx9da4/scrape_email","last_synced_at":"2026-04-16T12:32:54.277Z","repository":{"id":69778650,"uuid":"137786924","full_name":"mfbx9da4/scrape_email","owner":"mfbx9da4","description":"Uses google search to gather emails for a given set of queries","archived":false,"fork":false,"pushed_at":"2018-09-16T14:53:24.000Z","size":248,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T17:45:46.323Z","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/mfbx9da4.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":"2018-06-18T17:51:45.000Z","updated_at":"2018-09-16T14:53:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"11629af8-4266-46b3-abca-4df4bfc9d958","html_url":"https://github.com/mfbx9da4/scrape_email","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/mfbx9da4%2Fscrape_email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfbx9da4%2Fscrape_email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfbx9da4%2Fscrape_email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfbx9da4%2Fscrape_email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfbx9da4","download_url":"https://codeload.github.com/mfbx9da4/scrape_email/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244881708,"owners_count":20525720,"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-11-28T07:14:43.782Z","updated_at":"2026-04-16T12:32:54.239Z","avatar_url":"https://github.com/mfbx9da4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Scrape emails\n\n- Provide either a json file with list of names\n- Scrapes google first page for `${name} contact`  @\n- Then scrapes first few links until it finds @ on page\n\n## Method\n\npart 1 - save html files:\n- create html files for all google pages and top results\n- in parallel\n- would be faster to store in db\n\npart 2 - read each html file:\n- scrape for email regex, accumalate all email\n\n## Naming\n\nAlways prefix functions and files with either `fetchBar` or `extractFoo`\n\n## Getting Started\n\nrequries docker and docker compose\n\n    docker-compose up\n    yarn\n\nUse for debugging values\n\n    npm install -g redis-commander\n    redis-commander\n\n## Deploying\n\n\nhttps://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#docker-basics-create-image\n\n\t╰─$ aws ecr get-login --no-include-email --region eu-west-2\n\t## paste output to login\n    ╰─$ docker build -t scrape_email .\n\t╰─$ docker tag scrape_email:latest 016582366134.dkr.ecr.eu-west-2.amazonaws.com/scrape_email:latest\n\t╰─$ docker push 016582366134.dkr.ecr.eu-west-2.amazonaws.com/scrape_email:latest\n\n## Run Once\n\nSee package.json for scripts\n\n    node index.js\n\n## Testing docker locally\n\n    docker build -t scrape_email .\n    docker run -p 49160:3001 3000:3000 -d scrape_email\n\n## Streamlining: When to update db?\n\n- Individual agents should be updated independent of other agents therefore:\n- Wait for all subpages to be scraped before updating an agent record? YES\n- Wait for all properties to be scraped before updating an agent record? YES\n- Wait for all agents to be scraped before updating an agent record? NO\n- Wait for all regions to be scraped before updating an agent record? NO\n- =\u003e Emit an event everytime you extract some data completely for an agent\n- Emit an event when:\n    - Found agent name, address, etc\n    - Extracted agent property stats\n    - Extracted agent email\n\n\n## API\n- Get email for query\n- Get email for list of queries\n\n\n## TODO\n- Support upload csv native upload\n- Support download\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfbx9da4%2Fscrape_email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfbx9da4%2Fscrape_email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfbx9da4%2Fscrape_email/lists"}