Disclaimers
- I know that achieving this may require using some sort of GraphQL that’ll get you banned. It that’s the case, I don’t want to do it (I don’t want to get banned).
- This may need to be a feature request but first I wanted to set it as “Replit Help” to see if a feature already exists.
I would like a way to see which people unfollow me. I notice that every once in a while, my follower number goes down. I could read through the list manually, but that is tedious and not worth it. I get notifications in Replit every time I get a new follower. Is there a way to get a notification or at least view some sort of log to see who it was that unfollowed me?
This is at least the second time I’ve lost a follower. I want to know because maybe I offended them somehow and shouldn’t do something in the future. There are several templates on Replit (and I’m using one right now) that shows your follower count on website, so I know that we are at least close to doing this.
If anybody has any thoughts or suggestions, I will greatly appreciate it
.
2 Likes
it’s not banned iirc, since it’s all queries
2 Likes
Then do you know how to do it (easily, without wasting all your time on me)?
There is no function, without knowing how much followers you had before you get unfollowed
1 Like
yes but I’m not free at the moment… I think if you ask around (you would need to basically:
- prev = gather following info and update this
- current = constantly gather the people following you
- check difference between prev & current if len(current) < len(prev)
- these are the people unfollowing, log it somewhere, I guess with a timestamp)
1 Like
This would make a great addition to the follower templates on Replit.
2 Likes
If we can do this in Flask, that would be great because I can compare lists of data and numbers in Python. With JS I would need a lot more help.
1 Like
Does anybody know how to find the names of the users following me in Flask? If I could at least have that I could build the rest myself.
from replit_bot import gql
x = gql("", "query FollowModalFollowers($username: String!, $after: String, $count: Int) {userByUsername(username: $username) {followers(after: $after, count: $count) {\n\t\t\titems {\n\t \t\t\tid\n\t\t\t\tusername\n\t\t\t\tfirstName\n\t\t\t\tlastName\n\t\t\t\tlocale\n\t\t\t\tisVerified\n\t\t\t\tdisplayName\n\t\t\t\tfullName\n\t\t\t\turl\n\t\t\t\tbio\n\t\t\t\tsocials {\n\t\t\t\t\tid\n\t\t\t \t\turl\n\t\t\t\t\ttype\n\t\t\t\t}\n\t\t\t\troles {\n\t\t\t\t\tid\n\t\t\t \t\tkey\n\t\t\t\t\tname\n\t\t\t \t\ttagline\n\t\t\t\t}\n\t\t\t\tisFollowedByCurrentUser\n\t\t\t\tisFollowingCurrentUser\n\t\t\t\tisBlockedByCurrentUser\n\t\t\t\tisBlockingCurrentUser\n\t\t\t\tisLoggedIn\n\t\t\t\tisSubscribed\n\t\t\t\ttimeCreated\n\t\t\t\tfollowerCount\n\t\t\t\tfollowCount\n\t\t\t\tisHacker\n\t\t\t\timage\n\t\t\t\tcoverImage {\n\t\t\t\t\turl\n\t\t\t \t\toffsetY\n\t\t\t\t}\n\t\t\t\tpresenceStatus {\n\t\t\t\t\tlastSeen\n\t\t\t \t\tisOnline\n\t\t\t\t}\n\t\t\t}\n\t \t\tpageInfo {\n\t\t \t\thasNextPage\n\t\t \t\tnextCursor\n\t\t\t}\n\t\t}}}", {"username": "CoderElijah", "count": 100000})
make sure to pip install replit-bot
1 Like
Queries are allowed, though.