instascrape
Super lightweight Python 3 web scraping tools for data mining Instagram
Table of Contents
Installation
pip
Install from PyPI using
pip3 install insta-scrape
Clone
Clone right from Github to your local machine using
$ git clone https://github.com/chris-greening/instascrape.git
and 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
posts: int
profile_pic_url: str
is_business_account: bool
is_verified: bool
#etc.
Sample code:
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
likes: int
amount_of_comments: int
hashtags: List[str]
tagged_users: List[str]
caption: str
location: str
#etc.
Sample code:
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
name: str
is_following: bool
allow_following: bool
#etc.
Sample code:
from instascrape import Hashtag
url = 'https://www.instagram.com/explore/tags/python/'
hashtag = Hashtag(url)
hashtag.static_load()
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file insta-scrape-0.0.7.tar.gz.
File metadata
- Download URL: insta-scrape-0.0.7.tar.gz
- Upload date:
- Size: 5.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c219e70681b9d1daa99340672c929e7e8b20c42cfd461d938a4a4dfcd3f117c5
|
|
| MD5 |
d577e7783d78660b1662ae0eca2261cc
|
|
| BLAKE2b-256 |
379778fbc55524026643af6267dc62af8b18655ffe6e6d73e6a29c032d264c9e
|
File details
Details for the file insta_scrape-0.0.7-py3-none-any.whl.
File metadata
- Download URL: insta_scrape-0.0.7-py3-none-any.whl
- Upload date:
- Size: 7.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6820ae3f35cbdbb72fae9b77a6fbdea699ad4aef22b0a68a5bba672fb5d7290
|
|
| MD5 |
41a76f7d6017ab30e0835b4c9ce7411e
|
|
| BLAKE2b-256 |
badd1311c795b8bfa90dadaf3e1d535b388c0e100360449d799edfa20f4377b3
|