Comments (13)
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.
from itsagramlive.
Can you send your code and output?
from itsagramlive.
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.
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.
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.
After some (a lot?) of test the solution I found is:
- desactive the two factor
- log normally
- active the two factor again
Please let me know if this work for you.
from itsagramlive.
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.
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.
Hey @mkkyah , update to 0.2 and try again the 2FA by SMS.
I did a lot of changes last night 😄
from itsagramlive.
@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.
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.
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)
- Except when ending stream
- Pin message? (question) HOT 5
- Bad password HOT 5
- the endpoint add_post_live_to_igtv no longer exists HOT 16
- Fullscreen live HOT 2
- Error "choose a challenge name" HOT 3
- ERROR(400): Can't comment for now. HOT 1
- Error on saving post to igtv HOT 2
- ffmpeg rtmps Resource temporarily unavailable HOT 1
- portrait live HOT 1
- ERROR(400) on login HOT 1
- LIVE STREAM ISSUE HOT 20
- Get Comments not list all comments
- Stream existing rtmp link to instagram
- tell me exact version of ffmpeg needed
- ffmpeg 3.3.0 (-deinterlace) command used in live_broadcast_ffmpeg.py is too old HOT 1
- read mp4 file from link & auto rotate videos for lanscape output live
- ANTIALIAS is deprecated HOT 1
- replace stream_key HOT 2
- login error 400 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itsagramlive.