-
Notifications
You must be signed in to change notification settings - Fork 112
get_recent_comments() results in KeyError: 'entry_data' #124
Comments
Did you use Selenium or a |
Hi @stefco , If not, could you tell me how to work around this issue? |
@NishantPuri99 It is not merged yet, have not seen feedback on #125. Seems the repository owner is not maintaining this project. I fixed it in the latest version on my fork's master branch, if you want to |
Ah okay. Thank you so much |
hi |
Same question |
Describe the bug
calling get_recent_comments from a scraped post results in keyerror: 'entry_data'
headers = {"user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Mobile Safari/537.36 Edg/87.0.664.57",
"cookie": f"sessionid={SESSIONID};"}
path = "https://www.instagram.com/p/"+s['shortcode']+"/"
p = Post(path)
p.scrape(headers=headers)
->> error here print(p.get_recent_comments())
Expected behavior
I expect the list of comments of a post
The text was updated successfully, but these errors were encountered: