Comments (11)
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.
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.
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.
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.
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.
This has completely thrown me, Sorry I'm no good with Python!
from twitterfollowbot.
ok have you done it, if not tell me so I can write it so you'll just copy and paste it
from twitterfollowbot.
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.
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.
@BradHouston, did you get this working? @ydaniels has been right on point.
from twitterfollowbot.
I have installed it, just testing now.
from twitterfollowbot.
Related Issues (20)
- Need help with installation please HOT 1
- auto_unfollow_nonfollowers() crashes for certain suspended user HOT 4
- Why my already-followed.txt is empty HOT 1
- twitterfollowbot 2.0.2 requires twitter==1.17.0, which is not installed. HOT 1
- Erreur de Syntaxe detectées dans les clés API
- probleme lors del'execution du programme python
- How to make the bot auto retweet the latest tweet? HOT 1
- Unfollow only X people that don't follow back?
- FYI - API wrapper methods out-dated; Project non-functional HOT 2
- Hello help me this problem not starting tweet bot
- dear author
- Automatically add users tweeting about something to one of your list
- Help with setting up a Twitter bot HOT 1
- a
- Can't run the bot HOT 2
- i am having this problem with irclib
- TwitterFollowBot
- T
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitterfollowbot.