{ "v": 1, "id": "x-cards", "name": "X as cards", "sites": ["x.com", "twitter.com"], "post": "article", "fields": { "link": [{ "sel": "a[href*=\"/status/\"]:has(> time)", "take": "href" }, { "sel": "a[href*=\"/status/\"]", "take": "href" }], "author": [{ "sel": "[data-testid=\"User-Name\"] a", "take": "text" }, { "sel": "a > div[dir=\"auto\"]", "take": "text" }], "handle": { "sel": "span", "take": "text", "match": "^@\\w{1,30}$" }, "avatar": [{ "sel": "[data-testid=\"Tweet-User-Avatar\"] img", "take": "src" }, { "sel": "[data-post-avatar] img", "take": "src" }], "time": { "sel": "time", "take": "datetime" }, "timeText": { "sel": "a[href*=\"/status/\"]", "take": "text", "match": "^\\d+[smhd]$|^[A-Z][a-z]{2} \\d{1,2}" }, "text": [{ "sel": "[data-testid=\"tweetText\"]", "take": "text" }, { "sel": "div[dir=\"auto\"][lang]", "take": "text" }], "images": [{ "sel": "img[src*=\"pbs.twimg.com/media/\"], img[src*=\"pbs.twimg.com/card_img/\"]", "take": "src", "all": true }, { "sel": "video[poster]", "take": "poster", "all": true }], "stats": { "sel": "[role=\"group\"][aria-label]", "take": "aria-label" }, "context": { "sel": "[data-testid=\"socialContext\"]", "take": "text" }, "promoted": { "sel": "span", "take": "exists", "match": "^(Ad|Promoted)$" } } }