{"id":17183466,"url":"https://github.com/simon-laux/static-instagram-embed","last_synced_at":"2025-03-25T02:39:17.302Z","repository":{"id":101394935,"uuid":"567477870","full_name":"Simon-Laux/static-instagram-embed","owner":"Simon-Laux","description":"embed instagram posts into your website in a privacy respecting manner","archived":false,"fork":false,"pushed_at":"2022-11-18T09:03:52.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T03:42:46.611Z","etag":null,"topics":["instagram","privacy","website"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simon-Laux.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-17T21:56:53.000Z","updated_at":"2023-05-31T13:34:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"461b6562-4c4d-4c92-b0ec-424b65146408","html_url":"https://github.com/Simon-Laux/static-instagram-embed","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/Simon-Laux%2Fstatic-instagram-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-Laux%2Fstatic-instagram-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-Laux%2Fstatic-instagram-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-Laux%2Fstatic-instagram-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simon-Laux","download_url":"https://codeload.github.com/Simon-Laux/static-instagram-embed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245388304,"owners_count":20607153,"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":["instagram","privacy","website"],"created_at":"2024-10-15T00:40:42.442Z","updated_at":"2025-03-25T02:39:17.241Z","avatar_url":"https://github.com/Simon-Laux.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Privacy friendly static embedding of Instagram to your website\n\nThis project has 2 parts, one python script that downloads/updates the data, and one web component that you can easily embed into your website.\n\n## Embed Web component into your website\n\ndownload [`open-instagram-embed.min.js`](https://raw.githubusercontent.com/Simon-Laux/static-instagram-embed/blob/main/open-instagram-embed.min.js).\n\n```html\n\u003cscript type=\"module\" src=\"open-instagram-embed.min.js\"\u003e\u003c/script\u003e\n\n\u003copen-instagram-embed\n  datasource=\"url-to/insta-data\"\n  count=\"3\"\n\u003e\u003c/open-instagram-embed\u003e\n```\n\nArguments:\n\n- `datasource` - point this to the \"insta-data\" directory that `fetch_data.py` generated. This can be even on a different server as long as you set the CORS headers correctly on the server serving the \"insta-data\" directory.\n- `count` - how many posts to display, default is 3. If you want more posts, you also need to increase the number of posts downloaded with the `fetch_data.py` script with the `--post-count` flag.\n\n### Compile it yourself\n\n```\ncd open-instagram-embed\nnpm install\nnpm run build\n```\n\nNow copy `open-instagram-embed/dist/components/open-instagram-embed.js` to your project!\n\n## Downloading Data\n\ninstall dependencies\n\n```\npip3 install instaloader\npip3 install click\n```\n\nThen run the updater function (you can put it into a cronjob somewhere):\n\n```\npython fetch_data.py --target-profile username\n```\n\nreplace `username` with the name of your profile\n\nSometimes it can make sense to log in to:\n\n- download a private profile\n- increase success rate from a public server that might be blocked by Instagram\n\nTo do that, you first need to log in\n\n```\ninstaloader --login username\n```\n\nReplace `username` with the name of your profile.\n\nAnd then modify the command from above like this\n\n```\npython fetch_data.py --login-user username --target-profile username\n```\n\nReplace `username` with the name of your profile.\n\n```sh\n$ python fetch_data.py --help\nUsage: fetch_data.py [OPTIONS]\n\n  load data from instagram\n\nOptions:\n  --login-user TEXT      Login username, you need to login with\n                         `instaloader --login` if you want to use this option\n  --target-profile TEXT  Profile to download data from  [required]\n  --post-count INTEGER   How many posts to download, default is 3\n  --help                 Show this message and exit.\n```\n\n## Thanks to\n\n### instaloader for fetching the data from instagram\n\nhttps://github.com/instaloader/instaloader\n\n### Font awesome for the icons\n\nFont Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com License -\nhttps://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code:\nMIT License) Copyright 2022 Fonticons, Inc.\n\n### Stencil for making Web components easy\n\nhttps://stenciljs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-laux%2Fstatic-instagram-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon-laux%2Fstatic-instagram-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-laux%2Fstatic-instagram-embed/lists"}