Jump to content
UBot Underground

I Don't Get How I Can Scrape Usernames On Gramfeed


Recommended Posts

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#rolex

2) Wait for website loading

3) Scrape for usernames and save them on a list

4) Navigate to: http://www.gramfeed.com/#USERNAME

5) 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!

Link to post
Share on other sites

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!

Link to post
Share on other sites

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
}

Link to post
Share on other sites

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 by Asentrix
  • Like 1
Link to post
Share on other sites

 

 

 


 

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!!!

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...