Skip to main content

Sinnia IG Fetching Tools

Project description

Sinnia IG Fetcher

To publish changes to this library in PyPi:

https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives Edit the version in setup.py.

first time?

'python3 -m pip install --upgrade build' 'python3 -m pip install --user --upgrade twine'

'python3 -m build' 'python3 -m twine upload dist/sinnia_*' Auth must have been configured in $HOME/.pypirc

Depend on this package: instagram-login-app

Using Instagram Graph API and Instagram Basic Display API


Includes:

For Businesses (Instagram Graph API):

  • Get Media
  • Get Competitors Media
  • Get Top Media in Hashtag

For Basic Users (Instagram Basic Display API):

  • Get Media

Usage:

from ig.get_business_media import BusinessMediaFetcher from ig.get_business_competitors_media import CompetitorsMediaFetcher from ig.get_hashtag_media import HashtagsMediaFetcher from ig.get_user_media import UserMediaFetcher

fetcher = BusinessMediaFetcher() data_found = fetcher.process_business_media(db_connection, business_ig_id, access_token)

fetcher = CompetitorsMediaFetcher() data_found = fetcher.process_competitors_media(db_connection, business_ig_id, competitor_name, access_token)

fetcher = HashtagsMediaFetcher() data_found = fetcher.process_hashtags_media(db_connection, business_ig_id, hashtag, access_token)

fetcher = UserMediaFetcher() data_found = fetcher.process_user_media(db_connection, user_ig_id, access_token)

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

sinnia_ig_fetcher-0.2.15.tar.gz (20.2 kB view hashes)

Uploaded source

Built Distribution

sinnia_ig_fetcher-0.2.15-py3-none-any.whl (40.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page