spa3212 1 Posted August 19, 2017 Report Share Posted August 19, 2017 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. How I scroll this list till the end..please help me out this situation..Thanks Quote Link to post Share on other sites
HelloInsomnia 1103 Posted August 19, 2017 Report Share Posted August 19, 2017 If they use lazy loading (when you scroll to the bottom more load) then you can try this: run javascript("window.scrollTo(0,document.body.scrollHeight);") 1 Quote Link to post Share on other sites
spa3212 1 Posted August 22, 2017 Author Report Share Posted August 22, 2017 (edited) Thanks Edited August 22, 2017 by spa3212 Quote Link to post Share on other sites
stever 10 Posted April 7, 2018 Report Share Posted April 7, 2018 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? ThanksS Quote Link to post Share on other sites
kazmiwajahat 1 Posted April 8, 2018 Report Share Posted April 8, 2018 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;") Quote Link to post Share on other sites
stever 10 Posted April 8, 2018 Report Share Posted April 8, 2018 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 againS Quote Link to post Share on other sites
kazmiwajahat 1 Posted April 9, 2018 Report Share Posted April 9, 2018 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;") 1 Quote Link to post Share on other sites
stever 10 Posted April 9, 2018 Report Share Posted April 9, 2018 Thanks - that works perfectly! Quote Link to post Share on other sites
kazmiwajahat 1 Posted April 10, 2018 Report Share Posted April 10, 2018 Thanks - that works perfectly!Glad to be of help Quote Link to post Share on other sites
stever 10 Posted April 11, 2018 Report Share Posted April 11, 2018 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! Quote Link to post Share on other sites
kazmiwajahat 1 Posted April 20, 2018 Report Share Posted April 20, 2018 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. Quote Link to post Share on other sites
stever 10 Posted April 21, 2018 Report Share Posted April 21, 2018 Thank you kazmiwajahat ! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.