Package: insta-scrape
instascrape: powerful Instagram data scraping toolkitWhat is it?instascrapeis 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.Key featuresHere are a few of the things thatinstascrapedoes well:Powerful, object-oriented scraping tools for profiles, posts, hashtags, reels, and IGTVScrapes HTML, BeautifulSoup, and JSONDownload content to your computer aspng,jpg,mp4, andmp3Dynamically retrieve HTML embed code for postsExpressive and consistent API for concise and elegant codeDesigned for seamless integration withSelenium,Pandas, and other industry standard tools for data collection and analysisLightweight; no boilerplate or configurations necessaryThe only hard dependencies areRequestsandBeautiful SoupProven to work as of January, 2021Table of ContentsInstallationSample UsageDocumentationBlog PostsContributingDependenciesLicenseSupport:computer: InstallationMinimum Python versionThis library currently requiresPython 3.7or higher.pipInstall from PyPI using$pip3installinsta-scrapeWARNING: make sure you installinsta-scrapeand not a package with a similar name!:mag_right: Sample UsageAll top-level, ready-to-use features can be imported using:frominstascrapeimport*instascrapeuses clean, consistent, and expressive syntax to make the developer experience aspainlessas possible.# Instantiate the scraper objectsgoogle=Profile('https://www.instagram.com/google/')google_post=Post('https://www.instagram.com/p/CG0UU3ylXnv/')google_hashtag=Hashtag('https://www.instagram.com/explore/tags/google/')# Scrape their respective datagoogle.scrape()google_post.scrape()google_hashtag.scrape()print(google.followers)print(google_post['hashtags'])print(google_hashtag.amount_of_posts)>>>12262794>>>['growwithgoogle']>>>9053408See theScraped data pointssection of theWikifor a complete list of the scraped attributes provided by each scraper.:books: DocumentationThe official documentation can be found onRead The Docs:newspaper: Blog PostsCheck out blog posts on theofficial siteorDEVfor ideas and tutorials!Scrape data from Instagram with instascrapeVisualizing Instagram engagement with instascrapeExploratory data analysis of Instagram using instascrape and PythonCreating a scatter matrix of Instagram data using PythonDownloading an Instagram profile's recent photos using PythonScraping 25,000 data points from Joe Biden's Instagram using instascrapeCompare major tech Instagram page's with instascrapeTracking an Instagram posts engagement in real time with instascrapeDynamically generate embeddable Instagram HTML with instascrapeScraping an Instagram location tag with instascrapeScraping Instagram reels with instascrapeScraping IGTV data with instascrapeScraping 10,000 data points from Donald Trump's Instagram with Python:pray: ContributingAll contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome!Feel free toopen an Issue, check out existingIssues, orstart a discussion.Beginners to open source are highly encouraged to participate and ask questions if you're unsure what to do/where to start :heart::spider_web: DependenciesRequestsBeautifulSoup:credit_card: LicenseThis library operates under theMITlicense.:grey_question: SupportCheck out theFAQReach out to me if you want to connect or have any questions!Email:chris@christophergreening.comTwitter:@ChrisGreeningLinkedInChris GreeningDISCLAIMER:With great power comes great responsibility. 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.