Python Forum
instagram followers name without suggestion for you
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
instagram followers name without suggestion for you
#1
I have a question related to using selenium to parse Instagram and get your followers list's name. Please refer to the attached photo.
When I click on followers it will also occur Suggestion for you, how to not get the suggestion for you name.

Is there any way if i click on followers and then get the whole followers page and just search the followers name lsit, and ignore 'suggestions for you' list. The code below have problem, it will get all followers' names list and also include suggestions for you name. how yo not get suggestion for you list?

browser.find_element_by_xpath("//a[contains(@href, '/followers')]").click()
sleep (2)
scroll_box=browser.find_element_by_xpath("/html/body/div[6]/div/div/div[2]")
print(scroll_box.text)
I use specific xpath or css name is able to solve just get the followers list without suggestion for you list as below, but I don't wants to use this method:
browser.find_element_by_xpath("//a[contains(@href, '/followers')]").click()
sleep (2)
scroll_box=browser.find_element_by_xpath("/html/body/div[6]/div/div/div[2]/ul/div")
print(scroll_box.text)

Attached Files

Thumbnail(s)
   
Reply
#2
Does the Instagram API not allow you to get this data?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to make bot that sends instagram auto password reset code kraixx 2 1,390 Mar-04-2023, 09:59 PM
Last Post: jefsummers
  Can you give me some suggestion about PCEP Newbie1114 0 1,029 Oct-14-2021, 03:02 PM
Last Post: Newbie1114
  Optimization suggestion Julia 2 1,738 Mar-29-2020, 12:02 PM
Last Post: Julia
  Predicting Likes on Instagram Posts donnertrud 1 2,333 Dec-28-2019, 08:53 AM
Last Post: kamaleon
  Need suggestion how to handle this error farrukh 1 2,271 Dec-21-2019, 03:21 PM
Last Post: DeaD_EyE
  first try with python class, suggestion for improvement please anna 18 5,954 Nov-01-2019, 11:16 AM
Last Post: anna
  [split] suggestion required for new script anna 1 2,979 Mar-27-2018, 06:42 PM
Last Post: nilamo
  Instagram pagination tags Kalet 1 5,013 Dec-14-2016, 09:56 PM
Last Post: nilamo
  Get pagination Instagram Kalet 0 5,985 Dec-14-2016, 12:21 AM
Last Post: Kalet
  Python Instagram bot user-following problem danotto 1 5,036 Dec-11-2016, 10:36 PM
Last Post: Blue Dog

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020