{"id":19111084,"url":"https://github.com/ebronnikov/instagram-scraper","last_synced_at":"2026-05-31T18:30:18.753Z","repository":{"id":109449252,"uuid":"390809276","full_name":"endygamedev/instagram-scraper","owner":"endygamedev","description":":selfie: Instagram Engagement Data.","archived":false,"fork":false,"pushed_at":"2021-08-24T12:30:45.000Z","size":127,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-03T04:27:51.305Z","etag":null,"topics":["data-scraping","instagram","scrapy","selenium","selenium-python","selenium-webdriver","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endygamedev.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":"2021-07-29T17:57:12.000Z","updated_at":"2021-08-24T12:30:48.000Z","dependencies_parsed_at":"2023-04-21T08:47:13.463Z","dependency_job_id":null,"html_url":"https://github.com/endygamedev/instagram-scraper","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/endygamedev%2Finstagram-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endygamedev%2Finstagram-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endygamedev%2Finstagram-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endygamedev%2Finstagram-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endygamedev","download_url":"https://codeload.github.com/endygamedev/instagram-scraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240165253,"owners_count":19758344,"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":["data-scraping","instagram","scrapy","selenium","selenium-python","selenium-webdriver","web-scraping"],"created_at":"2024-11-09T04:27:02.435Z","updated_at":"2026-05-31T18:30:18.699Z","avatar_url":"https://github.com/endygamedev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003cimg alt=\"instagram-logo\" src=\"./assets/logo.webp\" width=30\u003e Instagram Engagement Data\u003c/h1\u003e\n\u003cp align=\"center\"\u003eThis repository is an order from a freelance.\u003c/p\u003e\n\n## Task\nI have one instagram profile with 2 posts on it that I need to find out of each like if they follow the user or not. So for example if the profile has 100k followers and 50k likes on one of their posts, I need to find out how many of those 50k likes follow the profile. If you can write a script where I can easily swap profile usernames if I want to test another instagram profile for the same data extraction that would be great. Please write the script in python if possible. Expected output would be the script code and a csv file with a column for the username \"@\" of the \"likes\" on each post, a column with a 1/0 or a Yes/No if that username \"@\" that liked the post also follows the profile.\n\n## Documentation\n`class Scraper(username: str, password: str)` — main class that takes all the information from Instagram\n\n`def Scraper.authentication() -\u003e None` — function with which you can log into Instagram\n\n`def Scraper.get_follower_list(profile: str) -\u003e List[str]` — function that creates a list of followers\n\n`def Scraper.get_likes_list(post: str) -\u003e List[str]` — function that creates a list of users who have liked the post\n\n`def Scraper.end() -\u003e None` — function that exits the `webdriver`\n\n`def Scraper.run_and_save(profile: str, post: str, post=\"\": str) -\u003e None` — function that launches the scraper and saves the data to a `.csv` file\n\nYou can also use GUI — [gui.py](/src/gui.py).\n\n## Example\n```python\nfrom scraper import Scraper\nfrom pprint import pprint\n\n\nusername = \"username\"       # Your `username` from Instagram account\npassword = \"password\"       # Your `password` from Instagram account\nprofile_name = \"profile\"    # Instagram profile that interests you, for example: 'endygamedev_'\npost_link = \"post_url\"      # Instagram post that insterest you, for example: 'https://www.instagram.com/p/CRmQr4yrBz0/'\n\n\nscraper = Scraper(username, password)\nscraper.authentication()\n\nfollower_list = scraper.get_follower_list(profile_name)\npprint({len(follower_list): follower_list})\n\nlikes_list = scraper.get_likes_list(post_link)\npprint({len(likes_list): likes_list})\n\nscraper.run_and_save(profile_name, post_link)\n\nscraper.end()\n```\n\n## Dependencies\nFor the script to work correctly, you need to install [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [Geckodriver](https://github.com/mozilla/geckodriver/releases) or you can use another browser, but for this you need to watch yourself how to connect `webdriver`.\n\n## License\n`instagram-scraper` is licensed under the [GNU General Public License v3.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febronnikov%2Finstagram-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febronnikov%2Finstagram-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febronnikov%2Finstagram-scraper/lists"}