Jump to content
UBot Underground

Help With Instagram How To Scroll


Recommended Posts

Hi,

I want to create a instagram bot, where I want to scape the links of followers but follower list is big and Instagram shows only 20 followers, how can I scrape all followers..

any help is much appreciated. 

 

roRF4NyZSLunI6YVJUb1Vg.jpeg

 

 

How I scroll this list till the end..please help me out this situation..Thanks

Link to post
Share on other sites
  • 7 months later...

Did anyone actually try this? I am having the same problem but the JS solution offered doesn't seem to work. It's fine on other IG pages (like profile pages) but the follower list won't scroll down when I try this. Have tried opening in shared browser, but that fails. Any ideas?

 

Thanks

S

Link to post
Share on other sites

Use this code and it will work fine:

set(#ClassName,$scrape attribute(<(before="Close" AND class=w"_ms7sh _2txtt")>,"class"),"Global")
run javascript("var objDiv = document.getElementsByClassName(\"{#ClassName}\");
objDiv[0].scrollTop = objDiv[0].scrollHeight;")
Link to post
Share on other sites

Thanks - that looks interesting. I tried it - it didn't work, but the problem seems to be that Ubot can't see the attributes in the first line of the code: neither "Close" nor the wildcarded class selector. Could I trouble you to explain what the principle is and then I can have a go at making it work?

 

Thanks again

S

Link to post
Share on other sites

Try this - It should definitely work as it is working fine with me!
 

set user agent("Chrome")
navigate("https://www.instagram.com/maccosmetics/","Wait")
click(<href="/maccosmetics/following/">,"Left Click","No")
set(#ClassName,$scrape attribute(<class="_gs38e">,"class"),"Global")
run javascript("var objDiv = document.getElementsByClassName(\"{#ClassName}\");
objDiv[0].scrollTop = objDiv[0].scrollHeight;")
  • Like 1
Link to post
Share on other sites

Uh-oh - a related problem - wonder if anyone has solved it? (I don't think this is a Ubot issue)

 

The scrolling snippet provided by kazmiwajahat above works to overcome the lazy loading on Instagram. But if there are more than 1000 or so followers or following in your list, the scrolling stops and the page freezes with a loading rotator.

Slowing down the scrolling does not seem to make any difference. I've tried this with Firefox and Chrome desktop browsers with the same result, and other user agents like Android. The only way to get to the bottom of a long list seems to be to use the Instagram app.

 

Anyone with any ideas? This has wrecked my Instagram bot plans!

Link to post
Share on other sites
  • 2 weeks later...

Uh-oh - a related problem - wonder if anyone has solved it? (I don't think this is a Ubot issue)

 

The scrolling snippet provided by kazmiwajahat above works to overcome the lazy loading on Instagram. But if there are more than 1000 or so followers or following in your list, the scrolling stops and the page freezes with a loading rotator.

Slowing down the scrolling does not seem to make any difference. I've tried this with Firefox and Chrome desktop browsers with the same result, and other user agents like Android. The only way to get to the bottom of a long list seems to be to use the Instagram app.

 

Anyone with any ideas? This has wrecked my Instagram bot plans!

Just like Twitter, Instagram has also restricted the number of followers/people who engage with content that you can see in the list. In order to go beyond that, you need to use the API of Instagram which is highly limited.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...