Skip to main content

Package for processing statistics from Instagram profiles

Project description

Instats

A Python package for processing statistics from Instagram profiles

Installation

install instats from command line using:

pip3 install instats

Overview

Instats is a Python package for getting and working with statistics from Instagram Profiles. There exists modules for dealing with data about when posts were made, engagement metrics, and visual cohesiveness of a profiles posts. It relies heavily on the instaloader package for logging into Instagram and getting profile and post data.

Basic Usage

From instats import instatsprofile and create and InstatsProfile object:

from instats import instatsprofile

p = instatsprofile.InstatsProfile(username='some public profile')

Parameters for the InstatsProfile constructor:

  • username: username of an Instagram profile (string)
  • password: password of an Instagram profile (string), required for private accounts
  • ToP_n_most_recent: how many of a profiles most recent posts to use for time of post data (int)
  • feedmatch: indicate whether instance will need to process images beforehand (bool)
  • FM_n_most_recent: how many most recent images to consider for feedmatch (int)
  • pixel_count_per_image: how many pixels to use per image when processing feedmatch data (int)
  • Eng_n_most_recent: how many most recent posts to consider for engagement metrics (int)

Once an InstatsProfile is instantiated, all relevant modules and methods can be called and used.

Limitations

Private accounts need a password to be accessed and are considerably slower to get post data from. Furthermore, getting too many recent posts to process may cause instaloader to throw a too many requests error, so processing several hundreds of posts from a large account is clumsy and slow.

Possible Features to Add in the Future

  1. Get a profile's most engaged followers by ranking who likes/comments on the most posts in a profile. (this results in a too many requests error for accounts with thousands of likes per post)
  2. Module for processing data on the locations of posts made.
  3. Module for processing hashtag statistics and their effectiveness on engagement.

Project details


Download files

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

Source Distribution

instats-2.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

instats-2.0.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file instats-2.0.0.tar.gz.

File metadata

  • Download URL: instats-2.0.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for instats-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d12fd62c4d72a7d494230aab062aece1cdde16886e113b76c36659081e8936f8
MD5 5d719174253161ff824596e29c8591aa
BLAKE2b-256 9b9a29bbcd4f0906f1d7617688fa1f05b39c7f0f95ff66cc1141f47bd0eb7743

See more details on using hashes here.

File details

Details for the file instats-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: instats-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for instats-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1013935f421057b5a237a8101c031acfb922c1369af9f54f0b204e39d1ac4b2
MD5 583685517f453c410c4f635169fd2087
BLAKE2b-256 c41eb10cfee860d35aabbc7c6b738fcd64d7b667ec49806e5beb97ae0ea0f7a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page