Any idea on how to just ccheck for the Pinned tweets section of twitter while ignoring the rest of the page?

Hi!
Is there any way to just monitor the pinned tweet portion of twitter page?

Have this but it checks for all tweets:

{
  "selections": [
    {
      "frames": [
        {
          "index": 0,
          "excludes": [
            {
              "expr": "img",
              "type": "css"
            }
          ],
          "includes": [
            {
              "expr": "[data-testid=\"tweet\"] [lang] span",
              "type": "css"
            }
          ]
        }
      ],
      "dynamic": true,
      "delay": 10
    }
  ],
  "regexp": null,
  "ignoreEmptyText": true,
  "includeStyle": false,
  "viewport": {},
  "dataAttr": "text"
}

TIA!

Hello @Wookieboy - it should be possible to select a pinned tweet using XPath’s contains function. Following XPath expression should do that well:

//*[@data-testid='cellInnerDiv'][.//*[contains(text(), 'Pinned')]]//*[@data-testid='tweetText']

An updated config should look like the following:

{
  "selections": [
    {
      "frames": [
        {
          "index": 0,
          "excludes": [
            {
              "expr": "img",
              "type": "css"
            }
          ],
          "includes": [
            {
              "expr": "//*[@data-testid='cellInnerDiv'][.//*[contains(text(), 'Pinned')]]//*[@data-testid='tweetText']",
              "type": "xpath"
            }
          ]
        }
      ],
      "dynamic": true,
      "delay": 10
    }
  ],
  "regexp": null,
  "ignoreEmptyText": true,
  "includeStyle": false,
  "viewport": {},
  "dataAttr": "text"
}

Can you try this out and see how well it works? Let me know if you need any help. Cheers!

ahh this looks promising! Ok i’ll try it and update again. Thank you so much!