musician87 2 Posted May 18, 2015 Report Share Posted May 18, 2015 Hi guys, I'm having a roadblock since I don't really don't get how to do a particular thing. Basically I need to follow users from GramFeed. Each batch should add 20 people (for example). So:1) Navigate to: http://www.gramfeed.com/instagram/tags#rolex2) Wait for website loading3) Scrape for usernames and save them on a list4) Navigate to: http://www.gramfeed.com/#USERNAME5) If follow button -> click it, then wait, then Navigate to: http://www.gramfeed.com/#USERNAME for the next username.if Unfollow button -> skip to the next username.6) When finished wait.7) Reload the page and keep it looping. This is what I'm looking for...the issue is this: If I scrape for 20 username, but I already followed them, I basically miss a batch...for every batch I need to follow 20 usernames. So, how I can deal with it? Maybe I should navigate to each url where there is the username and if follow -> click it and increment a list to +1 and if there is the unfollow button, skip and look for another username. Then when #maxusernames (the variable that indicate the number of people I want to follow for batch) is = list then wait for X hour, clean list and refresh? I hope that you get what I'm looking for! Thanks a lot guys! Quote Link to post Share on other sites
Asentrix 17 Posted May 18, 2015 Report Share Posted May 18, 2015 If your code isn't too private I suggest posting it here so I can get a better understanding and assist you further 1 Quote Link to post Share on other sites
itexspert 47 Posted May 18, 2015 Report Share Posted May 18, 2015 Maybe I should navigate to each url where there is the username and if follow -> click it and increment a list to +1 and if there is the unfollow button, skip and look for another username. Then when #maxusernames (the variable that indicate the number of people I want to follow for batch) is = list then wait for X hour, clean list and refresh? You Answered to your own question my friend! Quote Link to post Share on other sites
itexspert 47 Posted May 18, 2015 Report Share Posted May 18, 2015 This is from my Instagram Marketer Pro,its very simple to follow people from a list of usernames really only thing you need to be aware is the timing of all of this! Thought it would be a good share! define Follow Users From List { set user agent("Chrome") create table from file(#usersfromlist,&test1) loop(#listfollowers) { if($comparison(#STOP,"=",$true)) { then { stop script } else { } } navigate("http://www.gramfeed.com/{$table cell(&test1,#row,0)}","Wait") wait(2) wait for browser event("DOM Ready","") wait for browser event("Everything Loaded","") if($exists(<innerhtml="+ follow">)) { then { click(<innertext="+ follow">,"Left Click","No") } else { click(<innertext="+ Request">,"Left Click","No") } } wait(3.5) increment(#row) } navigate("http://www.gramfeed.com","Wait") stop script} Quote Link to post Share on other sites
Asentrix 17 Posted May 18, 2015 Report Share Posted May 18, 2015 (edited) Here you are navigate("http://www.gramfeed.com/instagram/tags#rolex", "Wait") clear list(%usernames) wait for element(<id="main">, 20, "Appear") change attribute(<id="topbar">, "innertext", "") change attribute(<id="topAd">, "innertext", "") change attribute(<id="filter">, "innertext", "") add list to list(%usernames, $scrape attribute(<title=w"*">, "title"), "Delete", "Global") set list position(%usernames, 0) loop($list total(%usernames)) { navigate("http://www.gramfeed.com/{$next list item(%usernames)}", "Wait") } I couldn't finish it since I don't have instagram , but I can tll you how to finish it.You need to do the following If exists > select element > unfollow button Then navigate("http://www.gramfeed.com/{$next list item(%usernames)}", "Wait") Else click follow button navigate("http://www.gramfeed.com/{$next list item(%usernames)}", "Wait") Edited May 18, 2015 by Asentrix 1 Quote Link to post Share on other sites
musician87 2 Posted May 18, 2015 Author Report Share Posted May 18, 2015 Damn guys thanks a lot! I'll look into it asap! Basically I didn't post my code since I haven't idea how do it, but now I believe that I can do it Thanks a lot!!! Quote Link to post Share on other sites
Asentrix 17 Posted May 18, 2015 Report Share Posted May 18, 2015 Not a problem , if you ever need help just shoot me a PM 1 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.