giganut 109 Posted May 13, 2013 Report Share Posted May 13, 2013 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 Knuc63wilriv21 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) } UNFOLLOW USER THAT DO NOT FOLLOW BACK.ubot 1 Quote Link to post Share on other sites
Twitter Dominator 125 Posted May 13, 2013 Report Share Posted May 13, 2013 nice thanks for the gifts Quote Link to post Share on other sites
giganut 109 Posted May 14, 2013 Author Report Share Posted May 14, 2013 nice thanks for the gifts I am glad that it was useful to you. Quote Link to post Share on other sites
JackCrow 4 Posted May 14, 2013 Report Share Posted May 14, 2013 Wow! That's awesome. Thank you. I'll be spending the next few days trying to apply this to Twitter. Quote Link to post Share on other sites
giganut 109 Posted May 24, 2013 Author Report Share Posted May 24, 2013 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? Quote Link to post Share on other sites
JackCrow 4 Posted May 26, 2013 Report Share Posted May 26, 2013 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. :-) 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.