{"id":13585765,"url":"https://github.com/chris-greening/instascrape","last_synced_at":"2025-04-07T10:31:43.050Z","repository":{"id":40600448,"uuid":"297484369","full_name":"chris-greening/instascrape","owner":"chris-greening","description":"Powerful and flexible Instagram scraping library for Python, providing easy-to-use and expressive tools for accessing data programmatically","archived":true,"fork":false,"pushed_at":"2023-04-20T22:59:59.000Z","size":18871,"stargazers_count":616,"open_issues_count":53,"forks_count":110,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-04-14T12:21:52.741Z","etag":null,"topics":["beginner-friendly","data-mining","data-science","instagram","instagram-data","instagram-scraper","lightweight","python","python-scraper","python3","webscraping"],"latest_commit_sha":null,"homepage":"https://chris-greening.github.io/instascrape/","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/chris-greening.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2020-09-21T23:28:20.000Z","updated_at":"2024-06-18T21:14:01.608Z","dependencies_parsed_at":"2024-06-18T21:14:00.545Z","dependency_job_id":"9f421e9c-6c16-4388-b5ca-fb18a4a74b15","html_url":"https://github.com/chris-greening/instascrape","commit_stats":{"total_commits":772,"total_committers":12,"mean_commits":64.33333333333333,"dds":"0.21502590673575128","last_synced_commit":"d8e327a7bdd3b5d790ed40b69f06d9ce249afa83"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-greening%2Finstascrape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-greening%2Finstascrape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-greening%2Finstascrape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-greening%2Finstascrape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chris-greening","download_url":"https://codeload.github.com/chris-greening/instascrape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247636573,"owners_count":20970957,"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":["beginner-friendly","data-mining","data-science","instagram","instagram-data","instagram-scraper","lightweight","python","python-scraper","python3","webscraping"],"created_at":"2024-08-01T15:05:08.020Z","updated_at":"2025-04-07T10:31:42.439Z","avatar_url":"https://github.com/chris-greening.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/logo.png\" width=\"800px\"\u003e\n\u003c/p\u003e\n\n# _instascrape_: powerful Instagram data scraping toolkit \n\n## Note: This module is no longer actively maintained.\n\n## DISCLAIMER: \n\nInstagram has gotten increasingly strict with scraping and using this library can result in getting flagged for botting AND POSSIBLE DISABLING OF YOUR INSTAGRAM ACCOUNT. This is a research project and I am not responsible for how you use it. Independently, the library is designed to be responsible and respectful and it is up to you to decide what you do with it. I don't claim any responsibility if your Instagram account is affected by how you use this library.\n\n[![Version](https://img.shields.io/pypi/pyversions/insta-scrape)](https://www.python.org/downloads/release/python-360/)\n[![Downloads](https://pepy.tech/badge/insta-scrape)](https://pepy.tech/project/insta-scrape)\n[![Release](https://img.shields.io/pypi/v/insta-scrape)](https://pypi.org/project/insta-scrape/)\n[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n\n[![Activity](https://img.shields.io/github/last-commit/chris-greening/instascrape)](https://github.com/chris-greening/instascrape)\n[![Dependencies](https://img.shields.io/librariesio/github/chris-greening/instascrape)](https://github.com/chris-greening/instascrape/blob/master/requirements.txt)\n[![Issues](https://img.shields.io/github/issues/chris-greening/instascrape?style=flat)](https://github.com/chris-greening/instascrape/issues)\n\n## What is it?\n_instascrape_ is a lightweight Python package that provides an expressive and flexible API for scraping Instagram data. It is geared towards being a high-level building block on the data scientist's toolchain and can be seamlessly integrated and extended with industry standard tools for web scraping, data science, and analysis. \n\n\u003c!-- ![Example showing tech profile scrapes](/media/techprofiles.gif) --\u003e\n\n## Key features  \nHere are a few of the things that `instascrape` does well:\n\n* Powerful, object-oriented scraping tools for profiles, posts, hashtags, reels, and IGTV\n* Scrapes HTML, BeautifulSoup, and JSON\n* Download content to your computer as _png_, _jpg_, _mp4_, and _mp3_\n* Dynamically retrieve HTML embed code for posts\n* Expressive and consistent API for concise and elegant code\n* Designed for seamless integration with [_Selenium_](https://selenium-python.readthedocs.io/), [_Pandas_](https://pandas.pydata.org/), and other industry standard tools for data collection and analysis\n* Lightweight; no boilerplate or configurations necessary \n* The only hard dependencies are [_Requests_](https://requests.readthedocs.io/en/master/) and [_Beautiful Soup_](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)\n---\n\n## Table of Contents\n* [Installation](#installation)\n* [Sample Usage](#features)\n* [Documentation](#documentation)\n* [Blog Posts](#blog-posts)\n* [Contributing](#contributing)\n* [Dependencies](#dependencies)\n* [License](#license)\n* [Support](#support)\n\n---\n\n## :computer: Installation \u003ca name=\"installation\"\u003e\u003c/a\u003e\n\n### Minimum Python version\n\nThis library currently requires [Python 3.7](https://www.python.org/downloads/release/python-370/) or higher.\n\n\n### pip\nInstall from PyPI using\n```shell\n$ pip3 install insta-scrape\n```\nWARNING: make sure you install _insta-scrape_ and not a package with a similar name! \n\n---\n\n## :mag_right: Sample Usage \u003ca name=\"features\"\u003e\u003c/a\u003e\nAll top-level, ready-to-use features can be imported using:\n```python\nfrom instascrape import *\n```\n\n_instascrape_ uses clean, consistent, and expressive syntax to make the developer experience as _painless_ as possible. \n\n```python\n# Instantiate the scraper objects \ngoogle = Profile('https://www.instagram.com/google/')\ngoogle_post = Post('https://www.instagram.com/p/CG0UU3ylXnv/')\ngoogle_hashtag = Hashtag('https://www.instagram.com/explore/tags/google/')\n\n# Scrape their respective data \ngoogle.scrape()\ngoogle_post.scrape()\ngoogle_hashtag.scrape()\n\nprint(google.followers)\nprint(google_post['hashtags'])\nprint(google_hashtag.amount_of_posts)\n\u003e\u003e\u003e 12262794\n\u003e\u003e\u003e ['growwithgoogle']\n\u003e\u003e\u003e 9053408\n```\n\nSee the [Scraped data points](https://github.com/chris-greening/instascrape/wiki/Scraped-data-points) section of the [Wiki](https://github.com/chris-greening/instascrape/wiki) for a complete list of the scraped attributes provided by each scraper. \n\n## :books: Documentation \u003ca name=\"documentation\"\u003e\u003c/a\u003e\nThe official documentation can be found on [Read The Docs](https://instascrape.readthedocs.io/en/latest/index.html)\n\n---\n\n## :newspaper: Blog Posts \u003ca name=\"blog-posts\"\u003e\u003c/a\u003e\n\n\nCheck out blog posts on the [official site](https://chris-greening.github.io/instascrape/blog/) or [DEV](https://dev.to/) for ideas and tutorials!\n\n- [Scrape data from Instagram with instascrape](https://dev.to/chrisgreening/scrape-data-from-instagram-with-instascrape-5e3e) \n- [Visualizing Instagram engagement with instascrape](https://dev.to/chrisgreening/visualizing-instagram-engagement-with-instascrape-326h)\n- [Exploratory data analysis of Instagram using instascrape and Python](https://dev.to/chrisgreening/exploratory-data-analysis-of-instagram-using-python-1o5c)\n- [Creating a scatter matrix of Instagram data using Python](https://dev.to/chrisgreening/visualizing-the-relationship-between-instagram-variables-using-python-55gg)\n- [Downloading an Instagram profile's recent photos using Python](https://dev.to/chrisgreening/downloading-an-instagram-profile-s-recent-photos-using-python-25b2)\n- [Scraping 25,000 data points from Joe Biden's Instagram using instascrape](https://dev.to/chrisgreening/scraping-25-000-data-points-from-joe-biden-s-instagram-using-instascrape-1026)\n- [Compare major tech Instagram page's with instascrape](https://dev.to/chrisgreening/compare-major-tech-instagram-page-s-with-instascrape-2419)\n- [Tracking an Instagram posts engagement in real time with instascrape](https://dev.to/chrisgreening/tracking-an-instagram-posts-engagement-in-real-time-with-instascrape-1m1j)\n- [Dynamically generate embeddable Instagram HTML with instascrape](https://dev.to/chrisgreening/dynamically-generate-embeddable-instagram-html-using-instascrape-3o4b)\n- [Scraping an Instagram location tag with instascrape](https://dev.to/chrisgreening/scraping-an-instagram-location-tag-with-instascrape-554f)\n- [Scraping Instagram reels with instascrape](https://dev.to/chrisgreening/scraping-instagram-reels-with-instascrape-3khb)\n- [Scraping IGTV data with instascrape](https://dev.to/chrisgreening/scraping-igtv-data-with-instascrape-595f)\n- [Scraping 10,000 data points from Donald Trump's Instagram with Python](https://dev.to/chrisgreening/scraping-10-000-data-points-from-donald-trump-s-instagram-page-with-python-2jcg)\n---\n\n## :pray: Contributing \u003ca name=\"contributing\"\u003e\u003c/a\u003e\nAll contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome!\n\nFeel free to [open an Issue](https://github.com/chris-greening/instascrape/issues/new/choose), check out existing [Issues](https://github.com/chris-greening/instascrape/issues), or [start a discussion](https://github.com/chris-greening/instascrape/discussions). \n\nBeginners to open source are highly encouraged to participate and ask questions if you're unsure what to do/where to start :heart:\n\n---\n\n## :spider_web: Dependencies \u003ca name=\"dependencies\"\u003e\u003c/a\u003e\n\n- [Requests](https://requests.readthedocs.io/en/master/)\n- [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)\n\n---\n\n\n## :credit_card: License \u003ca name=\"license\"\u003e\u003c/a\u003e\nThis library operates under the [MIT](LICENSE) license.\n\n---\n\n## :grey_question: Support \u003ca name=\"support\"\u003e\u003c/a\u003e\n\nCheck out the [FAQ](https://github.com/chris-greening/instascrape/wiki/Frequently-Asked-Questions)\n\nReach out to me if you want to connect or have any questions and I will do my best to get back to you\n* Email:\n  * chris@christophergreening.com\n* Twitter:\n  * [@ChrisGreening](https://twitter.com/ChrisGreening)\n* LinkedIn\n  * [Chris Greening](https://www.linkedin.com/in/chris-greening-646411139/)\n* Personal contact form: \n  * [www.christophergreening.com](https://www.christophergreening.com/contact)\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/logopic.png\" width=\"150px\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris-greening%2Finstascrape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchris-greening%2Finstascrape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris-greening%2Finstascrape/lists"}