{"id":28581203,"url":"https://github.com/hormold/instagram-scraper-widget","last_synced_at":"2026-05-09T14:02:40.787Z","repository":{"id":251667833,"uuid":"838077779","full_name":"Hormold/instagram-scraper-widget","owner":"Hormold","description":"Instagram widget for website to display profile grid. Do you need deployed version? Contact me:","archived":false,"fork":false,"pushed_at":"2024-11-20T23:58:57.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-11-21T00:27:57.240Z","etag":null,"topics":["html","iframe","instagram","nextjs","react","widget"],"latest_commit_sha":null,"homepage":"https://podelenko.pro","language":"TypeScript","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/Hormold.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-08-04T21:49:18.000Z","updated_at":"2024-11-20T23:59:00.000Z","dependencies_parsed_at":"2024-11-21T00:34:50.546Z","dependency_job_id":null,"html_url":"https://github.com/Hormold/instagram-scraper-widget","commit_stats":null,"previous_names":["hormold/instagram-scraper-widget"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Finstagram-scraper-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Finstagram-scraper-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Finstagram-scraper-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Finstagram-scraper-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hormold","download_url":"https://codeload.github.com/Hormold/instagram-scraper-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Finstagram-scraper-widget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259197983,"owners_count":22820156,"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":["html","iframe","instagram","nextjs","react","widget"],"created_at":"2025-06-11T04:16:19.609Z","updated_at":"2026-05-09T14:02:40.666Z","avatar_url":"https://github.com/Hormold.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instagram Scraper and Widget Generator\n\nThis project is an open-source backend service that scrapes data from Instagram and generates widgets based on the scraped data. It utilizes Redis for caching and requires a proxy for making requests to Instagram.\n\n## Features\n\n- Scrapes Instagram user profile information and posts\n- Caches responses in Redis to reduce the load on Instagram\n- Generates widgets based on the scraped data\n- Manages session handling with Instagram\n\n## Requirements\n\n- Node.js\n- Redis\n- Proxy service\n\n## Installation\n\n1. Clone the repository:\n\n```sh\ngit clone https://github.com/hormold/instagram-scraper-widget.git\ncd instagram-scraper-widget\n```\n\n2. Install dependencies:\n\n```sh\nnpm install\n```\n\n3. Set up environment variables:\n\nCreate a `.env` file in the root of the project and add the following variables:\n\n```env\nREDIS_URL=redis://localhost:6379\nPROXY_URL=https://your-proxy-service.com/{session}\n```\n\nMy recommendation for a proxy service is [Scraper API](https://dashboard.suborbit.al/register?code=hormold), which provides a session-based proxy service for scraping Instagram and other websites. You can generate Residential or Datacenter proxies with unique sessions for each user.\n\n## Usage\n\n1. Start the Redis server:\n\n```sh\nredis-server\n```\n\n2. Run the backend service:\n\n```sh\nnpm start\n```\n\n## Widgets\n\n### Profile Widget\n\n```html\n\u003ciframe src=\"http://localhost:3000/widget/{username}\" width=\"300\" height=\"400\" frameborder=\"0\"\u003e\u003c/iframe\u003e\n```\n\n\n## API Endpoints\n\n### Scrape Instagram Profile\n\n```http\nGET /scrape?username={username}\n```\n\n#### Response\n\n```json\n{\n  \"username\": \"string\",\n  \"fullname\": \"string\",\n  \"description\": \"string\",\n  \"profilePhoto\": \"string\",\n  \"metrics\": {\n    \"followers\": \"number\",\n    \"following\": \"number\",\n    \"posts\": \"number\"\n  },\n  \"posts\": [\n    {\n      \"shortcode\": \"string\",\n      \"photo\": \"string\",\n      \"accessibility_caption\": \"string\",\n      \"caption\": \"string\",\n      \"location\": \"string\",\n      \"likes\": \"number\",\n      \"comments\": \"number\"\n    }\n  ]\n}\n```\n\n## Session Management\n\n- Generates a unique session ID for each user\n- Stores session data in Redis with expiration\n- Retrieves and reuses last working session if valid\n- Revokes session if invalid response is received from Instagram\n- Updates session activity to prevent expiration\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Finstagram-scraper-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhormold%2Finstagram-scraper-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Finstagram-scraper-widget/lists"}