Jump to content



Photo

Script To Unfollow Users That Do Not Follow Back

Unfollow Users That Do Not Follow Back

  • Please log in to reply
5 replies to this topic

#1 giganut

giganut

    softwareautomation.org

  • Fellow UBotter
  • PipPipPip
  • 535 posts
  • LocationLost In Space!
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 12 May 2013 - 10:53 PM

I have been taking so much information from this great forum that I figured that it was time to give back, hope this is helpful to someone or everyone. This script will unfollow users that do not follow back on the social network site Pheed, this script can be easily applied to any social network site that has a followers list and a list of people you follow. The script creates four lists, this script starts by scraping the list of users that I am " subscribing to " List #1 then the script will scrape the list of users that are my " subscribers " List #2 after that the script will create a list of common list items from List #1 and List #2 to create a third list called " Users That Follow Back " List #3, then the script will take  List #3  and subtract it from List #1 and create a fourth list called "Users That Don't Follow Back "  List  #4 this is the fourth list that will contain all the users that do not follow the account back.

 

I want to give credit where credit is due, thanks to the members here that helped me get this right.

 

Thanks to...

Support: Robert K

nuc63

wilriv21

clear list(%Subscribing To)
clear list(%Subscribers)
clear list(%Users That Follow Back)
clear list(%Users That Dont Follow Back)
ui text box("Number of Unfollows:", #Number of Unfollows)
set(#Unfollowed, 0, "Global")
ui stat monitor("Unfollowed:", #Unfollowed)
navigate("https://www.pheed.com/home#subscribing_to", "Wait")
wait for element(<class="link-timeline">, "", "Appear")
loop while($exists(<class="load-more gradient-gray">)) {
    comment("LIST #ONE, SCRAPES SUBSCRIPING TO LIST")
    wait(2)
    add list to list(%Subscribing To, $scrape attribute(<innertext=w"pheed.com/*">, "fullhref"), "Delete", "Global")
    click(<class="load-more gradient-gray">, "Left Click", "No")
}
navigate("https://www.pheed.com/home#subscribers", "Wait")
wait for element(<class="link-timeline">, "", "Appear")
comment("LIST #ONE, ADDS USERS IF THE LIST DOSE NOT HAVE MANY FOLLOWERS")
add list to list(%Subscribers, $scrape attribute(<innertext=w"pheed.com/*">, "fullhref"), "Delete", "Global")
add list to list(%Subscribers, $scrape attribute(<innertext=w"pheed.com/*">, "fullhref"), "Delete", "Global")
loop while($exists(<class="load-more gradient-gray">)) {
    comment("LIST #TOW, SCRAPES THE SUBSCRIBERS LIST")
    wait(2)
    add list to list(%Subscribers, $scrape attribute(<innertext=w"pheed.com/*">, "fullhref"), "Delete", "Global")
    click(<class="load-more gradient-gray">, "Left Click", "No")
}
comment("LIST #THREE, CREATES A LIST OF USERS THAT ARE COMMEN IN THE FIRST TO LISTS")
add list to list(%Users That Follow Back, $common list items(%Subscribing To, %Subscribers), "Delete", "Global")
comment("LIST #FOUR, CREATES A FOURTH LIST THAT HAS SUBTRACTED THE THIRD LIST FROM THE SUBSCRIBING TO LIST OR LIST ONE")
add list to list(%Users That Dont Follow Back, $subtract lists(%Subscribing To, %Users That Follow Back), "Delete", "Global")
set(#Users That Dont Follow Back, 0, "Global")
loop(#Number of Unfollows) {
    comment("UNFOLLOWS USERS FROM THE FOURTH LIST")
    navigate($list item(%Users That Dont Follow Back, #Users That Dont Follow Back), "Wait")
    wait($rand(3, 8))
    click($element offset(<class="sub-btn big">, 0), "Left Click", "No")
    increment(#Unfollowed)
    wait($rand(3, 8))
    increment(#Users That Dont Follow Back)
}

Attached Files


softwareautomation-banner.png


#2 Twitter Dominator

Twitter Dominator

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 473 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 12 May 2013 - 11:21 PM

nice thanks for the gifts


Rush Hour Traffic Software -  Ubot Developer and Coder - New Project Requests - pm me for information and pricing.

** HTML UI / Ubot Coder / Twitter / Facebook / Social Media Bot Creations - Professional Windows OS Software Installer For Your Ubot Bots **
----------------------------------------------------------------------------------------------------------------------------------------------------------
Solve Captchas Over a 1000 types Including ReCaptcha   Join today and completely reduce your captcha solving costs! Solves The Most Captchas of any software current available
http://solvecaptchas.com/


#3 giganut

giganut

    softwareautomation.org

  • Fellow UBotter
  • PipPipPip
  • 535 posts
  • LocationLost In Space!
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 14 May 2013 - 05:36 AM

nice thanks for the gifts

 

 

I am glad that it was useful to you.


softwareautomation-banner.png


#4 JackCrow

JackCrow

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 151 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 14 May 2013 - 03:30 PM

Wow! That's awesome. Thank you. I'll be spending the next few days trying to apply this to Twitter. 



#5 giganut

giganut

    softwareautomation.org

  • Fellow UBotter
  • PipPipPip
  • 535 posts
  • LocationLost In Space!
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 23 May 2013 - 10:27 PM

Wow! That's awesome. Thank you. I'll be spending the next few days trying to apply this to Twitter. 

 

 

How did that work out for you?


softwareautomation-banner.png


#6 JackCrow

JackCrow

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 151 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 25 May 2013 - 05:36 PM

Ha. I'm out of my element with so much of this but I have a friend that is helping me learn. Really addicted to UBot and I wish my skill level was higher. However, I'm improving just about every day.

Thank you for sharing this script and being a positive element in the Ubot community. :-)





Also tagged with one or more of these keywords: Unfollow, Users, That, Do, Not, Follow, Back

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users