Instagram Business API to POST content to Instagram
Project description
InstagramAPI
Package for the Instagram Business API - Python
InstagramAPI - Python Package
A small demo library for a Medium publication about publishing libraries.
Installation
pip install python-InstagramBusinessAPI
Get started
How to post an image to Instagram with this package.
from InstagramAPI.InstagramBusinessAPI import InstagramBusinessAPI
instagram_api = InstagramBusinessAPI(ig_user_id=IG_USER_ID, access_token=ACCESS_TOKEN)
img_container = instagram_api.ImageContainer("https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.pinterest.com%2Fpin%2F441563938470171685%2F&psig=AOvVaw1-BpG1NgnVMHPDpdeV6Ute&ust=1670330141317000&source=images&cd=vfe&ved=0CA8QjRxqFwoTCMDF_eW-4vsCFQAAAAAdAAAAABAE", "Test Image")
instagram_api.post_local_container_to_instagram(img_container)
Thanks to
Skolo Online Learning for this amazing article.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file python-InstagramBusinessAPI-0.1.0.tar.gz.
File metadata
- Download URL: python-InstagramBusinessAPI-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ba422c592034519281680f985fae5c97434604b82695b0f12bde65689322dd5
|
|
| MD5 |
1f79c3b3196361e3e86adf3ccc552d57
|
|
| BLAKE2b-256 |
a514718fc004672f9d93f73a5ec99e699662e1cbcd706f20633cca415fd38adc
|