Skip to main content

instascrape

Lightweight Python 3 web scraper for data mining Instagram easily and efficiently!

Activity Language Size Code style: black License

Table of Contents


Installation

Clone

  • Clone to your local machine using
$ git clone https://github.com/chris-greening/instascrape.git 

Setup

  • Install required dependencies using
$ pip3 install -f requirements.txt

Features

Profile

Representation of an Instagram profile. Calling static_load takes care of requesting and scraping static HTML regarding the given URL or username. Profile.static_load scrapes 36 data points including

  • followers: int
  • following: int
  • post count: int
  • profile pic URL: str
  • business account: bool
  • verified: bool
  • etc.
from instascrape import Profile
url = 'https://www.instagram.com/gvanrossum/'
post = Profile(url)
post.static_load()

Post

Representation of a single Instagram post. Calling static_load takes care of requesting and scraping static HTML regarding the given URL or post shortcode. Post.static_load scrapes 29 data points including

  • amount of likes: int
  • amount of comments: int
  • hashtags used: List[str]
  • usernames tagged: List[str]
  • caption: str
  • location: str
  • etc.
from instascrape import Post 
url = 'https://www.instagram.com/p/CFcSLyBgseW/'
post = Post(url)
post.static_load()

Hashtag

Representation of an Instagram hashtag page. Calling static_load takes care of requesting and scraping static HTML regarding the given URL or hashtag name. Hashtag.static_load scrapes 10 data points including

  • amount of posts: int
  • pic URL: str
  • name: str
  • user is following: bool
  • allowed to follow: bool
  • etc.
from instascrape import Hashtag 
url = 'https://www.instagram.com/explore/tags/python/'
hashtag = Hashtag(url)
hashtag.static_load()

Support

Reach out to me if you have questions or ideas!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insta-scrape-0.0.5.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insta_scrape-0.0.5-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file insta-scrape-0.0.5.tar.gz.

File metadata

  • Download URL: insta-scrape-0.0.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for insta-scrape-0.0.5.tar.gz
Algorithm Hash digest
SHA256 62e1092af028bd79a5706c3918659c222622cc3b6e2e32029b33e966eecc8ac8
MD5 dcdf5e9cb35c83ff61eade2c68780c73
BLAKE2b-256 711430f23fdc238fbf06c2c4bfb8e1f10d82a50d09090b32cb5eeb91058a9428

See more details on using hashes here.

File details

Details for the file insta_scrape-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: insta_scrape-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for insta_scrape-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 304f8c5ce155c7b7ab0abc23c2d793948e265e2987ebe5cbea902d7b49a995ec
MD5 1c96b656c0dfb798972be65c7220f1ce
BLAKE2b-256 7b5d1cc685dcba212249c08379bc826de67e32d74b5bcd37c9318b09142b1994

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.2

2 files

2.0.0

1 file

1.7.1

2 files

1.7.0

1 file

1.6.1

2 files

1.6.0

1 file

1.5.0

1 file

1.4.0

2 files

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2.8

1 file

1.2.7

1 file

1.2.6

1 file

1.2.5

1 file

1.2.4

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.0

1 file

1.0.1

1 file

1.0.0

1 file

0.11.0

1 file

0.10.0

1 file

0.9.0

1 file

0.8.1

1 file

0.8.0

1 file

0.7.1

1 file

0.7.0

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

0.6.2

1 file

0.6.1

1 file

0.6.0

1 file

0.5.1

1 file

0.5.0

1 file

0.4.0

1 file

0.3.0

1 file

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

0.0.7

2 files

0.0.6

2 files

This release

0.0.5 This release

2 files

0.0.4

2 files

0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page