Coder Social home page Coder Social logo

Comments (13)

harrypython avatar harrypython commented on May 30, 2024

All the authentication code is from LevPasha/Instagram-API-python and looks like they had the support to 2FA.

What kind of 2FA are you using? Text message or Authentication App?

from itsagramlive.

mkkyah avatar mkkyah commented on May 30, 2024

from itsagramlive.

harrypython avatar harrypython commented on May 30, 2024

Can you send your code and output?

from itsagramlive.

mkkyah avatar mkkyah commented on May 30, 2024

Can you send your code and output?

sorry, which code and output?
do you mean the output which comes when trying to start broadcast with 2FA account?

from itsagramlive.

harrypython avatar harrypython commented on May 30, 2024

do you mean the output which comes when trying to start broadcast with 2FA account?

Yes, and how you trying to create the live

from itsagramlive.

mkkyah avatar mkkyah commented on May 30, 2024

this is with usename/password only:

python3 live_broadcast.py -u username -p password -share True
Request return 405 error!
{'message': '', 'status': 'fail'}
Request return 404 error!
Login success!

Server: rtmps://live-upload.instagram.com:443/rtmp/
Stream Key (copied to clipboard): xxxxx....xxxx
CTRL+C to quit.
 - -^C
Ending Broadcasting

this is with 2FA:

python3 live_broadcast.py -u username -p password -share True
Request return 400 error!
{'message': '', 'two_factor_required': True, 'two_factor_info': {'username': 'username', 'sms_two_factor_on': True, 'totp_two_factor_on': False, 'obfuscated_phone_number': 'xxxx', 'two_factor_identifier': 'xxxxxxxx', 'show_messenger_code_option': False, 'show_new_login_screen': True, 'show_trusted_device_option': False, 'phone_verification_settings': {'max_sms_count': 2, 'resend_sms_delay_sec': 60, 'robocall_count_down_time_sec': 30, 'robocall_after_max_sms': True}}, 'phone_verification_settings': {'max_sms_count': 2, 'resend_sms_delay_sec': 60, 'robocall_count_down_time_sec': 30, 'robocall_after_max_sms': True}, 'status': 'fail'}
Traceback (most recent call last):
  File "live_broadcast.py", line 7, in <module>
    live.start_broadcast(broadcast_id)
  File "/home/xxx/Downloads/itsagramlive-master/ItsAGramLive/ItsAGramLive.py", line 67, in start_broadcast
    '_uid': self.ig.username_id,
AttributeError: 'InstagramAPI' object has no attribute 'username_id'


from itsagramlive.

harrypython avatar harrypython commented on May 30, 2024

After some (a lot?) of test the solution I found is:

  1. desactive the two factor
  2. log normally
  3. active the two factor again

Please let me know if this work for you.

from itsagramlive.

mkkyah avatar mkkyah commented on May 30, 2024

Hi,
You mean it's not possible or easy to integrate 2FA?
The code is really working well for my account, so disabling/enabling is not a big deal for me.
But there is an account which we use a group of people as admins, when I disable/enable 2FA for that account every users device loses registration and needs new registration sms again.
Thanks anyway for looking.

from itsagramlive.

mkkyah avatar mkkyah commented on May 30, 2024

One more question,
when you activate 2FA, instagram sends also single use pre-defined codes for later use. Is it possible to use them in the code for 2FA login?

from itsagramlive.

harrypython avatar harrypython commented on May 30, 2024

Hey @mkkyah , update to 0.2 and try again the 2FA by SMS.
I did a lot of changes last night 😄

from itsagramlive.

mkkyah avatar mkkyah commented on May 30, 2024

@harrypython It's working and working really well. Although I didn't understand how it's authenticating, its directly connecting with success. Nothing asked, no sms.

from itsagramlive.

harrypython avatar harrypython commented on May 30, 2024

I didn't understand how it's authenticating

After logging in for the first time Instagram registers the script as a trusted "device" and will no longer require 2FA until you change your password.

Nothing asked, no sms.

The 0.2 version now support 2FA by SMS.

I still need some help with 2FA by TOTP.

from itsagramlive.

mkkyah avatar mkkyah commented on May 30, 2024

Hi again,
I'm testing the 2FA with another ig account, it's asking a sms code, but asking it every time. Not registering the script as trusted for that account.
my other account is trusted and weirdly deactivating/activating 2FA is not changing that trusted device situation.

from itsagramlive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.