# How to monitor Twitter for user posting a new tweet

**URL:** <https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998>\
**Category:** Help and Support\
**Tags:** twitter, social-media\
**Created:** [July 18, 2022, 8:57am UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998 "2022-07-18T08:57:31Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [April 30, 2025, 2:28am UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/22 "2025-04-30T02:28:10Z")

</div>

Ajit - thank you very much for following-up on this!

What’s odd is that I already had the “Wait for duration” set to 10 seconds. I’m going to swap the JSON you’ve provided for the existing one, though (after customizing it for MSFT365Status).

Is there a chance I could ask _you_ to use [X](https://x.com/MSFT365Status) in your monitor(s) and give it a day or two to see the “false positives” I’m sure you’ll see?.

 ![image](https://forums.distill.io/uploads/default/original/2X/1/19eecc034ee588e1da97cc5422bcff9e28b4907b.png)

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [April 30, 2025, 5:51pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/23 "2025-04-30T17:51:22Z")

</div>

> [@brantfl](#):
>
> Is there a chance I could ask _you_ to use [X](https://x.com/MSFT365Status) in your monitor(s) and give it a day or two to see the “false positives” I’m sure you’ll see?.

sure, i will give it a try. 🙂

will it work for you if it only monitored at most the top 2 posts? that can reduce chances of getting false positives.

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [May 1, 2025, 1:44pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/25 "2025-05-01T13:44:59Z")

</div>

tested for more than 2 hours. there hasn’t been any false notification until now.

 ![image](https://forums.distill.io/uploads/default/original/2X/d/d4918c980ffe58af7c0e49292f4b4b573bd76a27.png)

one thing to note is that i used the desktop app to monitor this. twitter doesn’t load properly in a background tab in a regular browser as it needs the page to be active. the desktop app is better at loading such pages.

---

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [May 30, 2025, 2:52pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/27 "2025-05-30T14:52:16Z")

</div>

I’ve tried running this on the desktop app, and in the web browser (Edge) and am still getting false positives. For example, this change I just got alerted-on (top) was actually posted 4 tweets ago on 15-Apr. As a FYI, because of the need to be alerts as soon as possible, I have interval set to check every 15 minutes.

Note: I’m using the exact same JSON for [CNN Breaking News (@cnnbrk) / X](https://x.com/cnnbrk) and it works beautifully!

 ![DistillFalsePositive](https://forums.distill.io/uploads/default/original/2X/3/3c65dc3c81af302bc380901181ee02debba600b6.png)

This is the JSON I’m using

```auto
{
  "selections": [
    {
      "frames": [
        {
          "index": 0,
          "excludes": [
            {
              "type": "css",
              "expr": "img"
            },
            {
              "type": "xpath",
              "expr": "//*[@data-testid='cellInnerDiv'][contains(text(), 'Promoted')]"
            }
          ],
          "includes": [
            {
              "type": "css",
              "expr": "[data-testid=\"tweet\"] [lang] span",
              "fields": [
                {
                  "name": "text",
                  "type": "builtin"
                }
              ]
            }
          ]
        }
      ],
      "dynamic": true,
      "delay": 10
    }
  ],
  "ignoreEmptyText": true,
  "includeStyle": false,
  "dataAttr": "text",
  "blockAdsAndCookies": true,
  "regexp": {
    "expr": "",
    "flags": "gim"
  }
}

```

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [May 31, 2025, 5:06pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/28 "2025-05-31T17:06:50Z")

</div>

interesting to know that it works well for one case but not for the other.

was the content in red deleted or didn’t load in time for this check? if it was the latter, you will see the content revert back to the older value. you can try the following solutions:

1. increase the delay to a higher value and see if it helps.
2. if increasing the delay doesn’t help and content flip-flops, use the condition `text doesn't match any previous text` to silence the alerts due to flip-flops.

let me know what you find out.

---

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [May 31, 2025, 5:37pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/29 "2025-05-31T17:37:41Z")

</div>

I added the condition you suggested, and I’ll report back!

---

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [July 4, 2025, 10:06pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/30 "2025-07-04T22:06:45Z")

</div>

@ajitk - reporting back! LOL The condition you suggested seems to have fixed the issue. Thank you!

BTW, I noticed something odd about Microsoft’s posts, but it could just be that I’m unfamiliar with Twitter. Their original tweet stays at the top, but the newer ones are _below_ it - are they replying to their own tweet? Is that why?

 ![image](https://forums.distill.io/uploads/default/original/2X/d/dbfa0149378f1102e10d8bf0744102e54c84c9ab.png)

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [July 6, 2025, 9:51am UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/31 "2025-07-06T09:51:43Z")

</div>

> [@brantfl](#):
>
> The condition you suggested seems to have fixed the issue. Thank you!

good to know that. 👍

> [@brantfl](#):
>
> are they replying to their own tweet? Is that why?

exactly

---

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [August 18, 2025, 11:36am UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/32 "2025-08-18T11:36:25Z")

</div>

@ajitk  
Microsoft’s Twitter account is driving me absolutely bonkers! Can you see where in the monitored webpage the elements triggered my alert? I’ve tried monitoring from the Windows app and my own browser.  
[Microsoft 365 Status (@MSFT365Status) / X](https://x.com/MSFT365Status)

 ![image](https://forums.distill.io/uploads/default/original/2X/6/684eb6fada00902d6b7801be844a4e665f48388f.png)

---

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [August 19, 2025, 4:09pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/33 "2025-08-19T16:09:37Z")

</div>

Ah - looks like we’re getting notified on replies (although I can’t see/find the highlighted one).

Is there a way to have the logic ignore replies?

 ![image](https://forums.distill.io/uploads/default/original/2X/a/a4e9ab68db6fc1a7393eb34386b14aa2e6fe85f1.png)

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [August 20, 2025, 4:50pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/34 "2025-08-20T16:50:32Z")

</div>

> [@brantfl](#):
>
> Can you see where in the monitored webpage the elements triggered my alert?

the screenshot show two things:

1. an element was deleted.
2. the change didn’t trigger an alert – notice the crossed bell icon. i am curious if something else made you think that it did trigger an alert.

> [@brantfl](#):
>
> Ah - looks like we’re getting notified on replies (although I can’t see/find the highlighted one).

the “posts” tab shouldn’t include replies. the replies tab does. can you double check?

---

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [August 20, 2025, 5:17pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/35 "2025-08-20T17:17:33Z")

</div>

I completely deleted the alert and rebuilt it using the JSON from above in this thread. Things actually worked like they were supposed to, but it is again pulling in crap from somewhere else. Gaaaa!

 ![image](https://forums.distill.io/uploads/default/original/2X/7/708c6918174d4844ce9a9b5bfa34fd654b6d355a.png)

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [August 21, 2025, 8:54am UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/36 "2025-08-21T08:54:52Z")

</div>

these messages don’t look like a reply – there is no relevance here. are they promoted content that show up in this feed?

---

<div class="post-metadata">

**Author:** ![brantfl](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@brantfl](https://forums.distill.io/u/brantfl)\
**Post date:** [August 22, 2025, 9:40pm UTC](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998/37 "2025-08-22T21:40:41Z")

</div>

I don’t see any promoted content/messages in the feed.

[Previous page](https://forums.distill.io/t/how-to-monitor-twitter-for-user-posting-a-new-tweet/998.md?page=1)
