Closed ROBYER1 closed 6 years ago
Quick edit - amended the lines so they look like this, now it seems to be following, chances are it wasn't checking for tweets that said 'Following', although im not really too sure.. let me know if you noticed any similar behaviour or if you try this :
if "follow" in i.text or "Follow" in i.text or "FOLLOW" in i.text or "following" in i.text or "FOLLOWING" in i.text: user_id = i.retweeted_status.user.id api.create_friendship(user_id)
except Exception:
pass
if ("fav" in i.text or "Fav" in i.text or "FAV" in i.text or "Like" in i.text or "LIKE" in i.text) and not i.favorited:
try:
Actually.. it doesn't seem to be following back again today, really odd.. anything to do with tweepy or twitter API limits on following? I can manually follow back users on my account.
Rather than open a new issue i shall add on to yours. I'm having the same issue now. The bot began to follow people, like and RT but no longer. It now only RT's.
I have looked in to the script and found that including 'following' and 'FOLLOWING' does not work. Neither does adding 'like' to the list of 'fav' etc.
So far i do not have any constructive solution, however i didn't want you thinking you were the only one this was happening to. If i do find an answer i shall post here.
Edit: I deleted everything and recloned the git repo. Once i had reinputted my Consumer and OAuth tokens i was told that the script was sleeping. Thats fine as it tells me the API hasn't lost my data, crucially after the period of time of sleep it awoke to begin following and retweeting again. One thing i haven't checked is liking but at time of writing my script is sleeping again.
Update from previous post,
Sorry to say ROBYER1 i took the idea and built my own bot. After testing it is retweeting, liking and following everyone in the list i have given it. I even gave it a successful randomiser between the requests.
Thanks goes out to the creator of this bot and massive thanks for pushing me to make my own!
@ROBYER1 @mablono5 yeah sorry about that guys - this is a super old project and I don't really upkeep it anymore.
@mablono5 - could you please publish your bot on github, though, so other people can use it? If you do I'd include a link to yours at the top of my readme saying that it's a more recent / better project.
same issue here, doesn't follow or like :( otherise, this thing is killer!
fixed it, it wasnt taking hashtags into account:
if "follow" in i.text or "#follow" in i.text or "Follow" in i.text or "#Follow" in i.text or "FOLLOW" in i.text or "#FOLLOW" in i.text or "following" in i.text or "#following" in i.text or "FOLLOWING" in i.text or "#FOLLOWING" or "Following" in i.text or "#Following" in i.text: user_id = i.retweeted_status.user.id api.create_friendship(user_id)
@andrewkerr5 just updated it with that patch and put your name in the code! thanks!
Thanks!
@ROBYER1 it took me longer than expected to iron out the bugs but the script is working. You can find it at https://github.com/mablono5/Twittercompbot
It's been heavily tested by myself and is working well so far. The proof will be in releasing it in to the wild.
@andrewkerr5 i'd appreciate it if you had a test
Got this all set up and running today, great work btw! However, it only seems to be retweeting, it isn't following or favouriting posts, seems odd? Have you noticed this behaviour?