InstaPy / instagram-profilecrawl

đź“ť quickly crawl the information (e.g. followers, tags etc...) of an instagram profile.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can't get post's comments

karenbarreto opened this issue · comments

I'm trying to get the post info and comments.

Screen Shot 2019-11-15 at 12 55 02

Screen Shot 2019-11-15 at 12 56 08

Screen Shot 2019-11-15 at 12 56 19

How can I get all comments from post?

please make a video how to launch in termux

Did you set the settings? @karenbarreto
Settings.scrape_posts_infos = True &
Settings.output_comments = True

same issue, and i've set both of these to true:

Settings.scrape_posts_infos = True
Settings.output_comments = True

I also noticed from inspecting instagram page, the html tags in the code don't always match the tags in the html page. take for example extractor.py line 155 and 158: I don't see isgrP or PZuss in the html of an instagram page. Is there a hidden element?
-----Correction. i understand it now. thats because of modal.

--maybe related, but tags aren't being separated from the profile post's description. <---still UNSOLVED
--maybe related, i only see "count" for followers and following, is there supposed to be an additional key with the actual names/ids of the followers? ---> fixed with setting scrape followers to TRUE
--how can i see selenium working on a browser rather than in a hidden state? ---> fixed by commenting out --headless argument.

let me know if i should start a new issue for those!

thanks again in advance this tool is amazing!!

UPDATE: there is a workaround fix for those that are having this issue.
replace line 459 in extractor.py:
post_infos, user_commented_total_list = quick_post_extract(browser, num_of_posts_to_do)
with the following:
post_infos, user_commented_total_list = extract_user_posts(browser, num_of_posts_to_do)

it basically rolls back to an older function for extracting post information. This fixes both the empty comments list and the empty txt file with commentators.