All Projects → tnychn → Instascrape

tnychn / Instascrape

Licence: mit
🚀 A fast and lightweight utility and Python library for downloading posts, stories, and highlights from Instagram.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Instascrape

Spam Bot 3000
Social media research and promotion, semi-autonomous CLI bot
Stars: ✭ 79 (+3.95%)
Mutual labels:  cli, scraper, instagram
Mythra
Music retrieval CLI and API using rust
Stars: ✭ 37 (-51.32%)
Mutual labels:  cli, library, downloader
Instapy Cli
✨ Python library and CLI to upload photo and video on Instagram. W/o a phone!
Stars: ✭ 498 (+555.26%)
Mutual labels:  cli, library, instagram
Yt Dlc
media downloader and library for various sites.
Stars: ✭ 2,590 (+3307.89%)
Mutual labels:  library, media, downloader
Cum
comic updater, mangafied
Stars: ✭ 117 (+53.95%)
Mutual labels:  cli, scraper, downloader
Ferret
Declarative web scraping
Stars: ✭ 4,837 (+6264.47%)
Mutual labels:  cli, scraper, library
Redditdownloader
Scrapes Reddit to download media of your choice.
Stars: ✭ 521 (+585.53%)
Mutual labels:  scraper, media, downloader
Mod Pbxproj
A python module to manipulate XCode projects
Stars: ✭ 959 (+1161.84%)
Mutual labels:  cli, library
Rxdownloader
- Reactive Extension Library for Android to download files
Stars: ✭ 40 (-47.37%)
Mutual labels:  library, downloader
Public Instagram
Tool to fetch Instagram's public content.
Stars: ✭ 43 (-43.42%)
Mutual labels:  scraper, instagram
Scrapstagram
An Instagram Scrapper
Stars: ✭ 50 (-34.21%)
Mutual labels:  scraper, instagram
Horrible Downloader
horriblesubs.info python API and CLI
Stars: ✭ 28 (-63.16%)
Mutual labels:  cli, downloader
Bashmultitool
A library for bash shell program containing useful functions. Can be imported into scripts to create colourful and functional scripts and TUIs.
Stars: ✭ 27 (-64.47%)
Mutual labels:  cli, library
Tabulate
Table Maker for Modern C++
Stars: ✭ 862 (+1034.21%)
Mutual labels:  cli, library
Social ids
Get user ids from social network handlers
Stars: ✭ 9 (-88.16%)
Mutual labels:  cli, instagram
Addic7ed Ruby
Ruby script to fetch subtitles on Addic7ed (auto-downloader)
Stars: ✭ 43 (-43.42%)
Mutual labels:  cli, downloader
Pitchfork Npm
An Unofficial Pitchfork Music API client for Node.js
Stars: ✭ 50 (-34.21%)
Mutual labels:  cli, scraper
Social Scraper
Tổng hợp script crawl dữ liệu từ các mạng xã hội & website tiếng Việt
Stars: ✭ 47 (-38.16%)
Mutual labels:  scraper, instagram
Insta Downloader Extension
A browser extension that injects download buttons ⬇️ for media on Instagram Web
Stars: ✭ 63 (-17.11%)
Mutual labels:  downloader, instagram
Instago
Download/access photos, videos, stories, story highlights, postlives, following and followers of Instagram
Stars: ✭ 59 (-22.37%)
Mutual labels:  downloader, instagram

logo

instascrape

A fast and lightweight Instagram media downloader

demo
Downloading 50 timeline posts and tagged posts (excluding videos) with preload option enabled, within 60 seconds.

github releases pypi project pypi downloads license


instascrape is a fast and lightweight utility and Python library for downloading a massive amount of media (photos and videos) from Instagram, without using the official Instagram Public API.

What makes instascrape special, is that instascrape aims at high efficeiency and speed. It provides a preload option that fetches and loads the full data of every item (Post/Profile) beforehand, using multithreading with the producer-consumer strategy.

Features

  • 🔌 Powerful & simple-to-use library interface
    • ⛓ calls methods in a chain (fluent interface)
    • 🔩 provides hooks/callbacks in download methods
  • 🚸 User-friendly commad-line interface
  • 💨 High efficiency
    • 🧵 uses multithreading to fetch data
    • ⚡️ uses generators to yield results
  • 🔎 Provides a filter option to avoid downloading media that you don't want
  • 📑 Download media along with their metadata
  • ⚠️ Good exceptions handling
  • 🍪 Manages multiple cookies for you
  • 🔑 Peforms authentication effectively
    • 🔐 supports 2FA
    • 🖇 solves checkpoint challenge
  • 🕶 Can be used in anonymous mode

Prerequisites

▸ Please make sure you have Python 3.5+ installed in your machine.

Dependencies

Installation

Lastest PyPI Stable Release (Recommended)

$ pip install instascraper

NOTE: Be careful when installing! The project name on PyPI is instascraper, not instascrape, since the name instascrape has been taken by another project.

Latest GitHub Commit

$ git clone https://github.com/tnychn/instascrape.git
$ cd instascrape
$ python setup.py install

Quickstart

To quickly download 100 timeline posts of Emma Watson (@emmawatson) that have more than 1M likes,

Command-line

$ instascrape down @emmawatson -timeline -PF "likes_count >= 1000000" -l 100 --preload -d ~/Pictures/Instagram

Library

from instascrape import Instascraper

with Instascraper() as insta:
    posts = insta.profile("emmawatson").timeline_posts()
    posts.limit(100).preload(True).filter(lambda p: p.likes_count >= 1000000)
    posts.download_all(dest="/Users/user/Pictures/Instagram")

Contributing

If you have any ideas on how to improve this project or if you think there is a lack of features, feel free to open an issue, or even better, open a pull request. All contributions are welcome!

Disclaimer

This project is in no way authorized, maintained or sponsored by Instagram. Use instascrape responsibly, do not use it for spamming or illegal activities.

We are not responsible for any kinds of negative actions that results from the use of instascrape. This is an independent and unofficial project. Use at your own risk.


Made with ♥︎ by tnychn
MIT © 2019 Tony Chan
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].