{"id":16277882,"url":"https://github.com/sabaimran/instabot","last_synced_at":"2026-05-01T19:34:45.881Z","repository":{"id":122812851,"uuid":"437658160","full_name":"sabaimran/instabot","owner":"sabaimran","description":"This short script allows you to automatically post a photo from your file system to your Instagram account using the web UI.","archived":false,"fork":false,"pushed_at":"2022-05-23T02:52:44.000Z","size":2400,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T17:30:41.449Z","etag":null,"topics":["automation","bot","copilot","instagram","selenium","selenium-python","selenium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Python","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/sabaimran.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":"2021-12-12T21:16:12.000Z","updated_at":"2024-11-08T22:01:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"0270e675-2da0-4e43-9a85-b34645ca8f8f","html_url":"https://github.com/sabaimran/instabot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sabaimran/instabot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabaimran%2Finstabot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabaimran%2Finstabot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabaimran%2Finstabot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabaimran%2Finstabot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sabaimran","download_url":"https://codeload.github.com/sabaimran/instabot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabaimran%2Finstabot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["automation","bot","copilot","instagram","selenium","selenium-python","selenium-webdriver"],"created_at":"2024-10-10T18:56:38.449Z","updated_at":"2026-05-01T19:34:45.861Z","avatar_url":"https://github.com/sabaimran.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instabot\nI created this tiny application so that I could ease the process of posting to Instagram. I didn't want to have to open up the app to post manually, but I still felt like it's good practice to share some of my photography on occasion.\nWith a bit of configuration, this script will let you publish a photo with a caption of your choosing to an account for which you have login credentials!\n\n# Run it!\n## First time\n1. `conda env create environment.yml`\n2. `sudo apt install firefox`\n3. `chmod +x instabot.sh`\n### Initialize your environment\n1. Replace `username` and `password` in your config with your username and password. Remember **never** to commit \u0026 push your config!\n2. Determine the classNames associated with a few different components on your Instagram web page. This is a little bit cumbersome, and I'll try to find a way around it, but for now this is the process 😞\n\n| Field | Screenshot |\n|-|-|\n| Replace `new-post-selector` with the className for the New Post button. | ![New Post Button](docs/new-post.png) |\n| Replace `button-selector` with the className for the Next button. This should cover all of our major buttons. | ![Next Button](docs/next-button.png) |\n| Replace `caption-selector` with the className for the Textarea in the captioning flow.| ![Caption Textarea](docs/caption-textarea.png)|\n\n## Each time\n1. `bash -i instabot.bash`\n    - Replace `sample_config.yml` with your config file.\n    - The `sample_config.yml` file is preloaded with reference to a couple of test images you can use to try the tool out.\n\n# Scheduling\nI created this project so I could automate posting photos to Instagram. To run the script on a schedule, I'm using [crontab](https://man7.org/linux/man-pages/man5/crontab.5.html). \n1. Open up your `crontab` configuration to edit.\n    - `crontab -e`\n2. Add the entry to schedule the `instabot.py` script.\n    - `m h dom m dow DISPLAY=:0 /home/user/path/to/this-project/insta-bot/instabot.bash`\n      - The `DISPLAY:=0` allows us to launch the Firefox browser via a `cronjob` in headless mode (i.e., without a display).\n\n# Built with\n- [Github Copilot](https://copilot.github.com/)\n- [Selenium](https://www.selenium.dev/documentation/webdriver/browser/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabaimran%2Finstabot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsabaimran%2Finstabot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabaimran%2Finstabot/lists"}