Skip to main content

Library Python untuk Instagram

Project description

Logo InstaPy

INSTAGRAM API AUTOMATION

🧩 Table of contents

Lorem ipsum anget banget sama bang jali versi docx sesuai dengan windows 10 ya kak pas co Ltd PT Bank mandiri Bank terbaik di dunia ini.

  1. Login
  2. User information
  3. Automation
  4. Scraping

Installation

pip install InstaPy

or using git

pip install git+ttps://github.com/ivan732/InstaPy

Instagram

Login using cookie

from InstaPy import Instagram

cookie = 'your instagram cookie string'
ig = Instagram(cookie=cookie)

Retrieving account information

print(ig.name) # your instagram name
print(ig.username) # your instagram username
print(ig.id) # your instagram id

Automation

Like

from InstaPy import Instagram
from InstaPy.automation import Automation

cookie = 'your instagram cookie string'
ig = Instagram(cookie=cookie)

post_id = '3829...'
automation = Automation(session=ig)
actions = automation.like(post_id=post_id)
print(actions) # output: Type[dict]
print(actions.status) # output: True/False

Scraping

Timeline Post

from InstaPy import Instagram
from InstaPy.scraping import Scraping

cookie = 'your instagram cookie string'
ig = Instagram(cookie=cookie)

scrape = Scraping(session=ig)
actions = scrape.timeline_post()
print(actions) # output: Type[dict] ex: {'status': Type[bool], 'data': Type[dict]}

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

igthon-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

igthon-1.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file igthon-1.0.0.tar.gz.

File metadata

  • Download URL: igthon-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for igthon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 06a1a312a53a68f00d0842d6a93b25356d645fd2826b673b544b7f973cd7eb37
MD5 6bb83537a05acdd09ab11c925dd671f8
BLAKE2b-256 5109677e23378da97b441a5cbe07fcb3f41ff51600e3391cc3ee63f3541dc66c

See more details on using hashes here.

File details

Details for the file igthon-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: igthon-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for igthon-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f444549f063d5d3e56428e44693ea02c0f5bb8eefb879fae6908a5edfb2ce4
MD5 0fcd53b573e42feb3437f3144e99a3c0
BLAKE2b-256 d284bd35430b9f48df28afd6daca28147ebdce6642849dcd700d61dc2b32cb71

See more details on using hashes here.

Supported by

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