Jump to content
UBot Underground

Top Likers Of Your Pics On Ig


Recommended Posts

So I want to create a bot that goes through each of my pics on Instagram.  Add the likers of my pics to a list (im guessing duplicates would have to be allow) and then count how many times each user shows up on that list.  Then I will know who are my top likers :)

Edited by BigEfromDaBX
Link to post
Share on other sites

i want to know which users are liking my pics the most.

 

Let me make it more easy. Forget about IG

 

Let says I have a list

 

List 1

0 George

1 Eddie

2 Maria

3 James

4 Martin

5 Eddie

6 Greg

7 Maria

 

I want to be able to count the occurrences for each item in the list.  For example: Eddie is in the list twice. Maria is in the list Twice.  Everybody else is just in there 1 time.

 

 

Make sense?

  • Like 1
Link to post
Share on other sites

you need 2 loops one inside another - one loop will take items from the list and in the other loop you will count the instance appearance.

you will need to remove the item from the list to prevent it from counting more than needed.

something like:

 

//loop 1

for i less than total list items

{

//loop 2

set j=i+1

set counter 1

for j less than total list items

   {

     if list item on position j is equal to list item on position i

      {

      increment counter

      remove item from the list

      decrement j

       }

    increment j

    }

 save counter for that item somewhere

 increment i

}

  • Like 1
Link to post
Share on other sites

Here's another look at it fi you need it...

clear list(%start list)
comment("not deleting duplicates")
add list to list(%start list,$list from text("ann
ann
robert
jesse
jesse
jesse",$new line),"Don\'t Delete","Global")
clear list(%keys)
add list to list(%keys,%start list,"Delete","Global")
clear list(%counted)
loop($list total(%keys)) {
    set(#found items,$find regular expression(%start list,$next list item(%keys)),"Global")
    clear list(%item counter)
    comment("not deleting duplicates")
    add list to list(%item counter,$list from text(#found items,$new line),"Don\'t Delete","Global")
    comment("$list item returns only 1")
    add item to list(%counted,"{$list total(%item counter)},{$list item($list from text(#found items,$new line),0)}","Don\'t Delete","Global")
}

post-5979-0-87435400-1524785730_thumb.png

Regards,
CD

example - count duplicates.ubot

  • Like 1
Link to post
Share on other sites

I did it with two tables.  2nd table had 2 columns

 

Went a little something like this:

 

  • Imported names into TABLE A
  • Created a loop that Looped Table Total Rows of TABLE Athrough each row
  • if TABLE B contains name from TABLE  A then grab total from from TABLE A row 2nd column and increment it
  • else insert the new name into TABLE B row on the first column and then 2nd column would be set to 

I did it with tables because my CSV had a few more thing i wanted to count which were in separate columns.

  • Like 1
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...