softcoder24 / insta_share

Share a post into your Instagram account using the requests library.
Other
26 stars 10 forks source link

Typeerror when loggin in #3

Closed drdoof2019 closed 3 years ago

drdoof2019 commented 3 years ago

Hi, TypeError: cannot unpack non-iterable NoneType object This is error in detail: login failed {"user": false, "authenticated": false, "status": "ok"} Traceback (most recent call last): File "c:/Users/User/Desktop/instagram-share-post-master/instagram.py", line 116, in <module> share_photo(photo="toronto.jpg", caption="This is awesome") File "c:/Users/User/Desktop/instagram-share-post-master/instagram.py", line 53, in share_photo csrf_token, session_id = login_instagram(insta_user, insta_password) TypeError: cannot unpack non-iterable NoneType object

Also can you please take a video or make an explanation how to code this program? I want to add extra functions like follow, like etc. Waiting for your response.

Edit: I forget that I changed my pass so I corrected it and code worked awasome! But I still need help about :

Also can you please take a video or make an explanation how to code this program? I want to add extra functions like follow, like etc. Waiting for your response.

softcoder24 commented 3 years ago

Hi There is a problem with the login function. the Instagram server knows when we log in via the requests and it asks us to verify our account then you can be logged in successfully. I am going to work on it if I solve I will update the code. Also, I am going to make a package of this script soon!

drdoof2019 commented 3 years ago

thank you @softcoder24 , If you can make a short video about how to find those headers etc. Humanity would be very happy:) I know requests module and finding via chrome inspect tool in network page but I cannot find what you find. For example I could not find login adress\ajax page, I dont know how to find an adress to upload ig server a photo. You are awasome my friend.