How do I track my follower losses?

  • 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 :slightly_smiling_face:.


it’s not banned iirc, since it’s all queries


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:

  1. prev = gather following info and update this
  2. current = constantly gather the people following you
  3. check difference between prev & current if len(current) < len(prev)
  4. 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.


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
  1. y share gql
  2. that query wasn’t formatted at all, so much extra white space ;-;
  3. I don’t think that count will work, it’s capped. You need to do multiple requests
  1. srry thought query allowed
  2. yes
  3. ¯\_(ツ)_/¯

Queries are allowed, though.