Sep-09-2021, 01:53 PM
(This post was last modified: Sep-09-2021, 02:33 PM by Yoriz.
Edit Reason: Removed username & password
)
hi,
I try to use this
https://github.com/ping/instagram_private_api
I managed to successfully login to my account with
https://github.com/ping/instagram_privat...allback.py
How can I use it simply?
Thanks for your help
I try to use this
https://github.com/ping/instagram_private_api
I managed to successfully login to my account with
from instagram_private_api import Client, ClientCompatPatch
user_name = 'user_name'
password = 'password'
api = Client(user_name, password)
results = api.feed_timeline()
items = results.get('items', [])
for item in items:
# Manually patch the entity to match the public api as closely as possible, optional
# To automatically patch entities, initialise the Client with auto_patch=True
ClientCompatPatch.media(item)
print(media['code'])It is specified that it is necessary to avoid connecting each time and an example is given.https://github.com/ping/instagram_privat...allback.py
How can I use it simply?
Thanks for your help
Yoriz write Sep-09-2021, 02:33 PM:
I removed a possible valid username and password.
I removed a possible valid username and password.
