Closed Qrh45timo closed 3 years ago
@Qrh45timo Make sure your Instagram account is logged in with that sessionid
. If you get this error go to browser login to Instagram and copy the new session id.
Thank You,
logged into another browser for new session id. double checked session id, but didn't help - same errors.
@Qrh45timo It is perfect working for me.
check once the session id
If you again not error please send your location (country name) and attach the output instagramy.html
file of the following script
add your session id in session_id
from instagramy.core.requests import get
session_id = "add you session id"
html_source = get("https://www.instagram.com/github/", sessionid=session_id)
print(html_source)
file = open("instagram.html", 'w')
file.write(html_source)
file.close()
done, still got error country code = NL
1] html_source = get("https://www.instagram.com/github/", sessionid=session_id) request_github.txt but this request is for user, that seems to work.
2] result for test request post CN8UG5fj6KB: html_source = get("https://www.instagram.com/p/CN8UG5fj6KB/", sessionid=session_id)
@Qrh45timo, Thank you for your outputs
Instagram redirects you to login page in your country you may try, Google Colab or any online interpreter. I think it work perfectly.
I try to fix this issue as soon as possible Thank You
thanks - let me know if you need some country-specific testing after fix :-)
@Qrh45timo Sure Thank you
Generates key errors, relevant json is moved. my tests:
import instagramy
hashtag = “…..” post_id =. “…..” user = “….”
ig_session_id = “….”
t = instagramy.InstagramHashTag(hashtag) Error Info: <class 'KeyError'>: 'TagPage'
t = instagramy.InstagramHashTag(hashtag, sessionid=ig_session_id) Error Info: <class 'KeyError'>: 'graphql'
p = instagramy.InstagramPost(post_id, sessionid=ig_session_id) Error Info: <class 'KeyError'>: 'graphql'
u = instagramy.InstagramUser(user, sessionid=ig_session_id)