Questions tagged [instagrapi]

Instagram Private API wrapper (public+private requests and challenge resolver).

18 questions
1
vote
0 answers

Who to execute request from user's ip and user agent(not server's)?

I have a Django app deployed on server. The application has code that makes requests to the unofficial Instagram API. Since the requests are made from the ip and user agent of the server, Instagram perceives this as a suspicious login attempt. Is…
begletsoid
  • 11
  • 1
1
vote
0 answers

"Segmentation fault" error when running python script via docker container but not locally

I'm building a script to automate Instagram marketing and are using the instagrapi library. This script (login.py) logs in: from instagrapi import Client cl = Client() cl.login(username,password) It works fine when running it locally (fill in your…
aleksandereiken
  • 430
  • 5
  • 9
0
votes
0 answers

Instagrapi: tag users (not mention) and save as a draft

I would like to post in instagram using instagrapi. I've been able to, but I'm missing how to do the following: Tagging users on the screen, not only mentioning Saving the post as a draft instead of publishing Any help? Or maybe I should look for…
g10k
  • 53
  • 5
0
votes
0 answers

I try post image to Instagram by python via instabot, instagrapi but always problem with Challenge

Have anyway to resolve this problem? My code (instabot): bot = Bot() bot.login(username="userid", password="password") img = "photo.jpg" bot.upload_photo(img, caption="Test post Instagram by Python") My code (instagrapi): api =…
0
votes
0 answers

How do I post using instagrapi?

Photo Upload failed with the following response: raise PhotoNotUpload(response.text, response=response, **last_json) instagrapi.exceptions.PhotoNotUpload:{"debug_info":{"retriable":true,"type":"AuthorizationFailedError","message":"A…
Tang0
  • 5
  • 4
0
votes
0 answers

MoviePy Exec() not working, syntax error?

I am trying to have instagrapi automatically upload pictures and videos to instagram and I am having an issue. I am trying the clip_upload() function and it isn't working. This is the error I get: exec("from %s import %s" % (name, name)) File…
Nico
  • 19
  • 3
0
votes
1 answer

How to use proxy in instagrapi

I'm almost new to python. I'm writing an instagram bot to share posts of my page to people on instagram. But i get restricted most of the times by instagram. My first question is how to use proxies in instagrapi to bypass the restrictions. And the…
0
votes
0 answers

user_followers() method not working in Instagrapi

If I try: cl.user_followers(target_user_id, 1) I can fetch the only first follower all the time, If I try fetch all followers I thing Instagram does not allow. I would be appreciated if any help. This: followers =…
AEG
  • 1
0
votes
0 answers

how to use a session for login operation in instagrapi

I'm almost new to python and i'm writing a bot via instagrapi library. I wanna use session to avoid logging in every time i run the scrpit. There was a sample code in documentation of instagrapi, but it didn't work and didn't help. So I need a code…
0
votes
1 answer

Login with proxy using Instagrapi

I wrote some code that logs in with 2fa and a proxy and then gets some info and returns it. It is not finished yet but the login section will not work. Here is the code, if someone could tell me what is wrong I would greatly appreciate it. As a side…
0
votes
0 answers

How to Scrape User Data and usernames with InstaGrapi

I am trying to use instagrapi to scrape user data such as "is_private" "is_verified" "username"/ I was able to grab the username but not the rest of the info. can anyone help me please. from instagrapi import Client cl = Client() cl.login("user",…
nathan
  • 1
  • 1
0
votes
0 answers

Instagram allows only one sessions

I made a bot using istagrapi. And I could have my bot running, have a desktop Instagram open and have my phone Instagram open. I belive I had 3 sessions, one for each an everything worked. But now, when I log with bot, I am kicked out off my phone…
Tom02
  • 11
  • 3
0
votes
0 answers

Send direct message on Instagram using Instagrapi Python

I'm trying to use the Instagrapi Python library to send a DM to a user on Instagram. Here is the code I'm using: from instagrapi import Client username = "username" password = "password" arrayOfUsers = [1234567890] * 1 cl =…
Srki
  • 315
  • 1
  • 4
  • 13
0
votes
0 answers

instagrapi.exceptions.UnknownError Confirmation Code

I'm new to using instagrapi and I want to understand if there is a way to automate the confirmation code process. from instagrapi import Client cl = Client() cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD) user_id =…
0
votes
0 answers

instagrapi gets more than one month publications

I try to get stats from post in current month. I have only 2 posts (rells and stadart publication). But this code gives me posts from current and past month from auth_data import login, password cl = Client() cl.login(login, password) like_count =…
Yaroslav
  • 1
  • 1
1
2