Seeing who engaged with your posts

After a post goes out, people like it, repost it, reply, quote it and follow you. This page pulls all of that from the account's X notifications, new and back through the history, keeps it on this machine, and gives the agent a list of who did what on which post. It sends nothing.

Run it from a fresh context

Say: "go on docs/useCases/twitter/notifications.md for <account>", or "who liked <post url>", or "who engaged since <date>". The agent then reads this page and README.md and runs the steps.

The steps

#StepToolDone when
0Session checktwitterSessionCheckloggedIn
1Read what is newtwitterNotifications { account }notificationSync says caughtUp, or a page cap
2The first time only, page back through the historytwitterNotifications { account, full: true }historyDone, or run it again later for the rest
3Ask what you need from what is kept, calling nothingtwitterNotifications { account, stored: true, type, since, post }the rows, counts by kind and engagers ranked by how much each person did
4Act on who engaged through the page for that jobengagerDms.md, engagementReplies.md, networkMaxing.mdthat page's own done

Each row is one person doing one thing: kind (like, repost, reply, quote, follow, mention, other), handle and userId, followsYou, which of the account's posts (postId, postUrl, postText), when (at), and for a reply or quote their own tweet (tweetUrl, text). type is likes, reposts, replies, quotes, follows or all; post takes a post id or url.

What to know

  • One read, many pages, one session. The read goes through the account's one X session, its engine host, never a session of its own (rule 105), and is one call on the account, so the queue's sends wait for it and it waits for them (rule 104). Pages are 40 notifications, 4 to 11 s apart, each through the account's governor. A 429 or a governor stop ends the read and keeps what came; nothing reads again until the owner says so (rule 94). Another run sending on the same account shares the same governor.
  • X decides how far back. --full goes on from where the last one stopped, 25 pages a run by default (pages), until X gives no more.
  • Aggregated notifications are opened up. "@a and 12 others liked your post" is kept as one row per person, and the account's own actions are never kept.
  • Kept, not synced anywhere. The rows live in ~/.logCli/twitter/<account>/notifications.json, never in Twenty.

What X shows

X shows the likes on the account's own posts only, never on someone else's.