Giter VIP home page Giter VIP logo

Comments (11)

ydaniels avatar ydaniels commented on May 23, 2024

just put a break statement when it gets to 700
you can set a counter to 0 and increase it as you unfollow.
e.g
counter=0

for loop:
      if counter==700:
            print 'done'
            break
      unfollowfunction
      counter+=1

from twitterfollowbot.

BradHouston avatar BradHouston commented on May 23, 2024

Where would this go in the code?

Sent from my iPhone

On 8 Jan 2015, at 10:37, ydaniels [email protected] wrote:

just put a break statement when it gets to 700
you can set a counter to 0 and increase it as you unfollow.
e.g
counter=0
for loop:
if counter==700:
print 'done'
break
unfollowfunction
counter+=1


Reply to this email directly or view it on GitHub.

from twitterfollowbot.

ydaniels avatar ydaniels commented on May 23, 2024

In this function 'def auto_unfollow_nonfollowers ():'
goto line 210 you'll see the for loop just put the code '''counter = 0
for user_id in not_following_back:
if counter==700:
print 'done'
break
(every other codes)
counter=counter+1

from twitterfollowbot.

ydaniels avatar ydaniels commented on May 23, 2024

Sorry I didn't use mark down for the codes in previous comment i would edit it when I get on my system

from twitterfollowbot.

BradHouston avatar BradHouston commented on May 23, 2024

I'll try it. Now! Thank you so much! The script it great!

Sent from my iPhone

On 8 Jan 2015, at 18:45, ydaniels [email protected] wrote:

In this function 'def auto_unfollow_nonfollowers ():'
goto line 210 you'll see the for loop just put the code '''counter = 0
for user_id in not_following_back:
if counter==700:
print 'done'
break
(every other codes)
counter=counter+1


Reply to this email directly or view it on GitHub.

from twitterfollowbot.

BradHouston avatar BradHouston commented on May 23, 2024

This has completely thrown me, Sorry I'm no good with Python!

from twitterfollowbot.

ydaniels avatar ydaniels commented on May 23, 2024

ok have you done it, if not tell me so I can write it so you'll just copy and paste it

from twitterfollowbot.

BradHouston avatar BradHouston commented on May 23, 2024

I couldn't find a way im afraid!

Sent from my iPhone

On 10 Jan 2015, at 12:42, ydaniels [email protected] wrote:

ok have you done it, if not tell me so I can write it so you'll just copy and paste it


Reply to this email directly or view it on GitHub.

from twitterfollowbot.

ydaniels avatar ydaniels commented on May 23, 2024

Simply replace the code from line 210 to 213 with this

counter=0     
for user_id in not_following_back:
    if counter==700:#change this number to limit number of unfollowed user 
        print 'done  ' 
        break
    if user_id not in users_keep_following:
        t.friendships.destroy(user_id=user_id)
        print("unfollowed %d" % (user_id))
        count=count+1

from twitterfollowbot.

rhiever avatar rhiever commented on May 23, 2024

@BradHouston, did you get this working? @ydaniels has been right on point.

from twitterfollowbot.

BradHouston avatar BradHouston commented on May 23, 2024

I have installed it, just testing now.

from twitterfollowbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.