{"id":24258196,"url":"https://github.com/tryolabs/social-media-scraper","last_synced_at":"2025-09-23T20:31:00.019Z","repository":{"id":39706052,"uuid":"156761295","full_name":"tryolabs/social-media-scraper","owner":"tryolabs","description":"Scrapes social media handles out of websites.","archived":false,"fork":false,"pushed_at":"2022-12-02T16:49:29.000Z","size":159,"stargazers_count":20,"open_issues_count":4,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-13T21:12:30.012Z","etag":null,"topics":["node-js","node-module","nodejs","webscraping"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tryolabs.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":"2018-11-08T19:55:51.000Z","updated_at":"2024-11-11T06:07:49.000Z","dependencies_parsed_at":"2023-01-22T22:45:58.905Z","dependency_job_id":null,"html_url":"https://github.com/tryolabs/social-media-scraper","commit_stats":null,"previous_names":["tryolabs/social-media-scaper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fsocial-media-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fsocial-media-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fsocial-media-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fsocial-media-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryolabs","download_url":"https://codeload.github.com/tryolabs/social-media-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233864217,"owners_count":18742291,"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":["node-js","node-module","nodejs","webscraping"],"created_at":"2025-01-15T05:31:51.588Z","updated_at":"2025-09-23T20:30:54.763Z","avatar_url":"https://github.com/tryolabs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Social Media handles scraper\nA node.js module to extract social media handles out of websites\n\n## Features\nA single configurable function that take several websites to extract and returns an array of social media handles.\n\n## Installation\n\nusing npm:\n```\n$ npm i social-media-scraper\n```\n\nusing yarn:\n```\n$ yarn add social-media-scraper\n```\n\n## Examples\n\n```\nconst getHandles = require('social-media-scraper').default\nconst websites = ['https://your-web-site-1.com', 'https://your-web-site-2.com']\ngetHandles(website)\n.then(handles =\u003e handles.map(handle =\u003e console.log(handle))\n.catch(error =\u003e console.error(error))\n```\n\n## API\n\n### Handles extractor\n\n##### `getHandles(urls: Array\u003cstring\u003e | string) =\u003e Array\u003c{ [website]: { [social_network]: Array\u003cstring\u003e }\u003e`\n\nReturns an array of object containing the website's url containing and object in which the keys are the social network identifiers with the handles extracted attached.\n\n```\n[\n  {\n    \"https://your-web-site.com/\": {\n       \"facebook\": [\"YourHandle\"],\n       \"twitter\": [\"YourHandle\"],\n       \"linkedin\": [\"YourHandle\"],\n       \"pinterest\": [],\n       \"tumblr\": [],\n       \"soundcloud\": [],\n       \"instagram\": [],\n       \"youtube\": [\"YourHandle\"],\n       \"snapchat\": []\n    }\n  }\n]\n```\n\n### Config\n\nSimply edit the ```socialMediaScraper.CONFIG``` array, supported social network are stored in the ```socialMediaScraper.SUPPORTED_NETWORKS``` set.\n\n\n```\nsocialMediaScraper.CONFIG = ['twitter', 'facebook', 'my-space']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryolabs%2Fsocial-media-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryolabs%2Fsocial-media-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryolabs%2Fsocial-media-scraper/lists"}