huaying / instagram-crawler

Get Instagram posts/profile/hashtag data without using Instagram API
MIT License
1.14k stars 283 forks source link

Can not fetch the comment with error #75

Open cytwill opened 4 years ago

cytwill commented 4 years ago

Hi, huaying, I just tried to use this IG-crawler to obtain comments of IG posts, but got such replies when running the example codes:

author = browser.find_one(".FPmhX", els_comment).text AttributeError: 'NoneType' object has no attribute 'text'

So I guess there might be some updates to the IG javascript that might name these components with different labels, could you help me to check these?

CaiqueCoelho commented 4 years ago

Hi @cytwill I have done some fix that allows to get the comments without the author name, perhaps this is a solution for now, until someone fix the path to get author name, the fix is in #76 cc @huaying