I can't get post's comments
karenbarreto opened this issue · comments
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.