{"id":13824894,"url":"https://github.com/shine-jayakumar/insta-likecom-bot","last_synced_at":"2026-01-18T10:59:20.146Z","repository":{"id":39346943,"uuid":"458731914","full_name":"shine-jayakumar/insta-likecom-bot","owner":"shine-jayakumar","description":"Automates likes and comments on an instagram account or tag","archived":false,"fork":false,"pushed_at":"2024-04-04T06:49:36.000Z","size":34526,"stargazers_count":140,"open_issues_count":15,"forks_count":30,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-20T03:31:54.448Z","etag":null,"topics":["insta-bot","insta-likecom-bot","insta-liker","instabot","instabot-py","instagram-bot","instagram-comment-bot","instagram-commenter","instagram-like-app","instagram-liker","instagram-post-liker","instagram-selenium","selenium-bot","selenium-instagram-bot","selenium-python","selenium-python-bot","selenium-python-script"],"latest_commit_sha":null,"homepage":"","language":"Python","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/shine-jayakumar.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-02-13T06:42:13.000Z","updated_at":"2024-11-06T18:45:09.000Z","dependencies_parsed_at":"2023-11-30T19:24:33.528Z","dependency_job_id":"3e1ea321-a3b3-453e-aa46-6c2969382c4e","html_url":"https://github.com/shine-jayakumar/insta-likecom-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shine-jayakumar/insta-likecom-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shine-jayakumar%2Finsta-likecom-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shine-jayakumar%2Finsta-likecom-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shine-jayakumar%2Finsta-likecom-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shine-jayakumar%2Finsta-likecom-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shine-jayakumar","download_url":"https://codeload.github.com/shine-jayakumar/insta-likecom-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shine-jayakumar%2Finsta-likecom-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264343740,"owners_count":23593783,"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":["insta-bot","insta-likecom-bot","insta-liker","instabot","instabot-py","instagram-bot","instagram-comment-bot","instagram-commenter","instagram-like-app","instagram-liker","instagram-post-liker","instagram-selenium","selenium-bot","selenium-instagram-bot","selenium-python","selenium-python-bot","selenium-python-script"],"created_at":"2024-08-04T09:01:11.274Z","updated_at":"2026-01-18T10:59:20.140Z","avatar_url":"https://github.com/shine-jayakumar.png","language":"Python","funding_links":["https://www.buymeacoffee.com/shinej"],"categories":["Python"],"sub_categories":[],"readme":"# insta-likecom-bot\n![License](https://img.shields.io/static/v1?label=license\u0026message=MIT\u0026color=green)\n![Open Source](https://img.shields.io/static/v1?label=OpenSource\u0026message=Yes\u0026color=brightgreen)\n![Version](https://img.shields.io/static/v1?label=version\u0026message=v.3.0.7\u0026color=blue)\n![Issues](https://img.shields.io/github/issues/shine-jayakumar/insta-likecom-bot)\n![ClosedIssues](https://img.shields.io/github/issues-closed-raw/shine-jayakumar/insta-likecom-bot)\n![Contributors](https://img.shields.io/github/contributors/shine-jayakumar/insta-likecom-bot)\n![LastCommit](https://img.shields.io/github/last-commit/shine-jayakumar/insta-likecom-bot)\n![TotalCommits](https://badgen.net/github/commits/shine-jayakumar/insta-likecom-bot)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/shine-jayakumar/insta-likecom-bot/issues)\n\n\n### Automates likes and comments on an instagram account or tag\n\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/shine-jayakumar/insta-likecom-bot/blob/master/instalikecombot.png\"/\u003e\n\u003c/p\u003e\n\ninsta-likecom-bot is an instagram bot written in python to automatically like and comment on an account or tag.\n\n**Table of Contents**\n- [Features](#features \"Features\")\n- [Requirements](#requirements \"Requirements\")\n- [Installation](#installation \"Installation\")\n- [Options](#options \"Options\")\n- [Usage](#usage \"Usage\")\n- [Examples](#examples \"Examples\")\n- [Version Updates](#version-updates \"Version Updates\")\n- [Frequenty Asked Questions](#fAQs \"FAQs\")\n- [Report a Bug](#issue \"Report an Issue\")\n- [License](#license \"License\")\n- [Donations](#donations \"Donations\")\n\n\n## Features\n- Interact with Posts (like, comment, like user comments)\n- Interact with Stories (like, comment)\n- Interact with Reels (like, comment, like user comments) [NEW] [version \u003e= 3.0.4]\n- Like and Comment on posts from followers of an account\n- Softban limit check [NEW] [version \u003e= 3.0.4]\n- Skip posts/reels already commented [NEW] [version \u003e= 3.0.4]\n- Target only stories or reels (skip posts)\n- Specify the number of posts to like\n- Filter post based on tags\n- Filter posts within last n years, months, days, hours, mins, secs\n- Comes loaded with generic comments\n- Load your own comments\n- Comments supports emojis (full support with Firefox; only bmp characters with Chrome)\n- Add a PS to the comments (postscript)\n- Supports Chrome and Firefox\n- Headless mode\n- Supports profile - load parameters from a json file\n- Supports browser profile - save credentials to skip login\n- ~~Target Most Recent posts~~ (Deprecated)\n- ~~Reloading target to view latest posts~~ (Deprecated)\n\n## Requirements\n- Python 3\n- Chrome Browser / Firefox\n\nView the [requirements.txt](https://github.com/shine-jayakumar/insta-likecom-bot/blob/master/requirements.txt)\n\n## Installation\n```sh\npip install -r requirements.txt\n```\n## Options\nRequired arguments\n| Argument | Description |\n| ------ | ------ |\n| username | Instagram username |\n| password | Instagram password |\n| target | An instagram account or tag|\n| limits | json file defining daily/hourly limits |\n\nOptional Arguments\n| Option | Description |\n| ------ | ------ |\n| -np , --numofposts | number of posts to like |\n| -ps , --postscript |  additional text to add after every comment |\n| -c , --comments | file containing comments (one comment per line) |\n| -oc , --onecomment | specify only one comment |\n| -nc , --nocomments | turn off comments |\n| -sc, --skipcommented | skip posts already commented |\n| -lc, --likecomments | like top n user comments per post |\n| -ff, --findfollowers | like/comment on posts from target's followers |\n| -fa, --followersamount | number of followers to process (default=all) |\n| -il, --inlast | target post within last n days (default=all) ex. 1y, 2M, 3d, 4h, 53m, 10s |\n| -vs, --viewstory | view stories |\n| -ls, --likestory | like stories (default=all) |\n| -cs, --commentstory | comments on stories (no comments if option not used) |\n| -os, --onlystory | target only stories and not posts |\n| -nr, --numofreels | number of reels to like |\n| -nrc, --noreelcomments | turn off reel comments |\n| -lrc, --likereelcomments | like top n user comments per reel |\n| -or, --onlyreels | target only reels and not posts |\n| -mr, --mostrecent | target most recent posts |\n| -rr, --reloadrepeat | reload the target n times (used with -mr) |\n| -mt, --matchtags | read tags to match from a file |\n| -mn, --matchtagnum | minimum tag match count for post to be qualified |\n| -ma, --matchalltags | match all tags in matchtags |\n| -lm, --limits | json file with limits configuration |\n| -et , --eltimeout | max time to wait for elements to be loaded (default=30) |\n| -d , --delay | time to wait while moving from one post to another |\n| -br, --browser | browser to use [chrome or firefox] (default=chrome) |\n| -pr, --profile | loads profile from a json file |\n| -bp, --brprofile | loads chrome profile from a path | \n\n## Usage\n**To like and comment every post**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget --limits limits.json\n```\n\n**To like and comment on stories**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -ls -cs 20 -lm limits.json\n```\n\n**To like and comment on reels**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -nr 10 -lm limits.json\n```\n\n**To specify number of posts to like**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -np NOOFPOSTS -lm limits.json\n```\n\n**To like and comment on posts from target's followers**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -np NOOFPOSTS -ff -lm limits.json\n```\n\n**To specify a delay**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -d DELAY -lm limits.json\n```\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -d start,end -lm limits.json\n```\n\n**To specify a file with comments**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -c FILE -lm limits.json\n```\n\n**To specify only one comment**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -oc TEXT -lm limits.json\n```\n\n**To add a text to the end of every comment**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -ps TEXT -lm limits.json\n```\n\n**To leave no comments**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -nc -lm limits.json\n```\n\n**To like comments from other users**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -ls 5 -lm limits.json\n```\n\n**To filter posts within last 2 days**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -il 2d -lm limits.json\n```\n\n**To filter posts within last 5 months**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -il 5M -lm limits.json\n```\n\n**To filter posts within last 3 years**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -il 3y -lm limits.json\n```\n\n**To target most recent posts**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -mr -lm limits.json\n```\n\n**To reload target 5 times with most recent posts**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -mr -rr 5 -lm limits.json\n```\n\n**To filter posts based on tags**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget --matchtags tags.txt -lm limits.json\n```\n\n**To specify a browser**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -br firefox -lm limits.json\n```\n\n**To specify a profile**\n```\nilcbot.py -pr profile1.json -lm limits.json\n```\n\n**To specify a browser profile**\n```\nilcbot.py -u yourusername -p yourpassword -t thetarget -bp '/path/to/Profile 1' -lm limits.json\n```\n\n## Examples\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk -np 5 -ff -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk -np 20 -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t \"#haiku\" -ps \"Follow me @bob101\" -c mycomments.txt -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t \"#haiku\" -oc \"Hello there\" -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk --delay 5 --numofposts 30 -lm limits.json\n```\n```\nilcbot.py -u 'bob101' -p 'b@bpassw0rd1' -t \"#haiku\" --delay 2,20 -lm limits.json\n```\n```\nilcbot.py --loadenv --delay 5 --numofposts 10 --headless --nocomments -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk -d 5 -np 30 -lc 5 -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk -np 30 -il 3h -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk -np 30 --matchtags tags.txt --ignoretags ignoretags.txt -lm limits.json\n```\n```\nilcbot.py -pr profile1.json -lm limits.json\n```\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t elonmusk -np 30 --brprofile '/path/to/Profile 1' -lm limits.json\n```\n\n**Note: Enclose tagnames (#haiku) in double-quotes/single-quotes when running the script in PowerShell/Bash.**\n```\nilcbot.py -u bob101 -p b@bpassw0rd1 -t \"#haiku\" -ps \"Follow me @bob101\" -c mycomments.txt\n```\n```\nilcbot.py -u 'bob101' -p 'b@bpassw0rd1' -t \"#haiku\" -ps \"Follow me @bob101\" -c mycomments.txt\n```\n**Sample profiles**\n```\n{   \n    \"username\": \"bob01\",\n    \"password\":\"passw0rd\",\n    \"target\": \"targets.txt\",\n    \"numofposts\": \"3\",\n    \"matchtags\": \"tags.txt\",\n    \"ignoretags\": \"ignore.txt\",\n    \"comments\": \"comments.txt\",\n    \"viewstory\": true,\n    \"likestory\": 1,\n    \"inlast\": \"3d\",\n    \"delay\": \"5\",\n    \"likecomments\": 2,\n    \"nocomments\": true\n}\n```\n```\n{   \n    \"username\": \"bob01\",\n    \"password\":\"passw0rd\",\n    \"target\": [\"#haikus\", \"#photography\"],\n    \"numofposts\": \"3\",\n    \"matchtags\": [\"#haiku\", \"#haikus\", \"#haikupoetry\"],\n    \"ignoretags\": [\"#shorts\"],\n    \"comments\": \"comments.txt\",\n    \"viewstory\": true,\n    \"likestory\": 1,\n    \"inlast\": \"3d\",\n    \"delay\": \"5\",\n    \"likecomments\": 2,\n    \"nocomments\": true,\n    \"brprofile\" : \"/dir/dir1/Profile 1\"\n}\n```\n```\n{   \n    \"username\": \"bob01\",\n    \"password\":\"passw0rd\",\n    \"target\": \"#photography\",\n    \"numofposts\": 2,\n    \"comments\": [\"Beautiful!\", \"Amazing!\", \"I can relate to this\"],\n    \"delay\": \"5,20\"\n}\n```\n**Sample target files**\n\u003cbr/\u003e\ntargets.txt\n```\n#haiku\n#photography\nbob01\nelonmusk\n```\n**Sample file with tags**\n\u003cbr/\u003e\ntagstomatch.txt\n```\n#gym\n#fitness\n#stayfit\n#healthylife\n#workout\n```\n**Sample file with comments**\n\u003cbr/\u003e\ncomments.txt\n```\n🔥🔥🔥\n👏👏\nBeyond amazing 😍\nYou’re the goat\nThis is fire 🔥\nKeep grinding 💪\nInsane bro 🔥\nThe shocker! 😮\nSuch a beauty 😍❤️\n```\n**Sample limits configuration file**\n\u003cbr/\u003e\ninstalimits.json\n```\n{\n    \"daily\": {\n        \"likes\": 1000,\n        \"stories\": 1000,\n        \"story_likes\": 600,\n        \"comment_likes\": 1500,\n        \"accounts\": 800,\n        \"comments\": 1000\n    },\n    \"hourly\": {\n        \"likes\": 350,\n        \"accounts\": 120,\n        \"comments\": 200\n    }\n}\n```\n\n\n\n## Version Updates\n\nVersion **v.3.0.7** (latest)\n\nBug Fixes:\n- issue # 119 and issue # 118 (dataclass initiation error while assigining another dataclass as default value)\n- updated locators.py\n- updated locators.json\n- updated is_story_present() method\n\n\u003cbr/\u003e\n\nVersion **v.3.0.6**\n\nBug Fixes:\n- DOM locators for like, comment, comment disabled updated\n- Issues #118, #119 fixed\n\n\u003cbr/\u003e\n\nVersion **v.3.0.5**\n\nChanges:\n- DOM locators isolated to a .json file\n- Fetches latest version of locators from repo\n\nBug Fixes:\n- Updated DOM locators for Instagram elements\n- Issue fixed: Skip posts/reels already commented - Doesn't work #113\n- Issue fixed: Unable to interact with Reels #105\n- Issue fixed: Unable To Like And Comment On Stories #104\n- Issue fixed: Error when story comment is disabled #101\n\n\n\u003cbr/\u003e\n\nVersion **v.3.0.4**\n\nFeature addition:\n- Reels interaction added\n- Softban limit check added\n- Skip already commented posts/reels\n- Persistent stats\n\nChanges:\n- Introduced InstaWorkFlow class\n- Added unit testing\n- Updated Stats class - Auto exit on exceeding limits\n\nBug Fixes:\n- auto creation of logs directory\n- xpaths for like, Save info buttons updated\n\n\u003cbr/\u003e\n\nVersion **v.3.0.3**\n\nBug Fixes:\n- Webdriver manager upgraded, enabling script to find latest Chrome drivers\n- XPATH for 'like' button updated\n\nChanges:\n- Using selenium Service class\n\n\u003cbr/\u003e\n\nVersion **v.3.0.2**\n\nFeature addition:\n- Supports Chrome browser profile - saves credentials\n- Supports profiles - loads arguments from a json file\n- Supports multiple targets - accepts file, list, or single value\n- Delay parameter can accept a range (2-20) or single value (20)\n- Ignoretags parameter - skip posts with specific tags present\n- Matchtags, Ignoretags parameter accepts tags from a file, list, or as a single value\n\nChanges:\n- Script renamed to 'ilcbot.py'\n- loadenv parameter deprecated\n\n\u003cbr/\u003e\n\nVersion **v.2.8** \n\nFeature addition:\n- added option -os, --onlystory - target only stories\n\nBug Fixes:\n- Private account check before opening stories\n- Check if story is present\n\n\u003cbr/\u003e\n\nVersion **v.2.7**\n\nFeature addition:\n- added option -ls, --likestory - to like stories\n- added option -cs, --commentstory - to comment on stories\n- added option -rr, --reloadrepeat - to reload target n times\n\n\u003cbr/\u003e\n\n## FAQs\n\n- [How to find Chrome profile path?](https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#:~:text=user%20data%20directory.-,Current%20Location,path%20to%20the%20profile%20directory.)\n\n\n\u003cbr/\u003e\n\n## Issue\nReport a [bug or an issue](https://github.com/shine-jayakumar/insta-likecom-bot/issues/new)\n\n## LICENSE\n[MIT](https://github.com/shine-jayakumar/insta-likecom-bot/blob/master/LICENSE)\n\n## Donations\n\u003ca href=\"https://www.buymeacoffee.com/shinej\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 50px !important;width: 200px !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshine-jayakumar%2Finsta-likecom-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshine-jayakumar%2Finsta-likecom-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshine-jayakumar%2Finsta-likecom-bot/lists"}