domain-skills(x): add logged-in X web-search workflow#442
Open
janzheng wants to merge 1 commit into
Open
Conversation
Drive the user's logged-in Chrome at x.com/search to read results with the full advanced-search operator set (since:/until: for any date window, min_faves:, from:, filter:, lang:, boolean groups) — reaching past the public API's ~7-day recent-search ceiling. Captures URL pattern, the operator table, login-wall STOP rule, scroll-while-extract guidance for the virtualized timeline, stable selectors, the aria-label exact-count trick (visible counts are truncated), a SourceItem-emitting js() extractor, a full capture snippet, and a traps list. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✅ Skill review passedReviewed 1 file(s) — no findings. |
Contributor
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="domain-skills/x/search.md">
<violation number="1" location="domain-skills/x/search.md:80">
P1: Extractor drops media-only tweets by requiring non-empty `tweetText`, breaking `filter:media`/`filter:videos` captures</violation>
</file>
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
| for (const art of document.querySelectorAll('article[data-testid="tweet"]')) { | ||
| const textEl = art.querySelector('[data-testid="tweetText"]'); | ||
| const text = textEl ? textEl.innerText.trim() : ""; | ||
| if (!text) continue; |
Contributor
There was a problem hiding this comment.
P1: Extractor drops media-only tweets by requiring non-empty tweetText, breaking filter:media/filter:videos captures
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At domain-skills/x/search.md, line 80:
<comment>Extractor drops media-only tweets by requiring non-empty `tweetText`, breaking `filter:media`/`filter:videos` captures</comment>
<file context>
@@ -0,0 +1,145 @@
+ for (const art of document.querySelectorAll('article[data-testid="tweet"]')) {
+ const textEl = art.querySelector('[data-testid="tweetText"]');
+ const text = textEl ? textEl.innerText.trim() : "";
+ if (!text) continue;
+ const timeEl = art.querySelector('a[href*="/status/"] time');
+ const a = timeEl && timeEl.closest('a[href*="/status/"]');
</file context>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
domain-skills/x/search.md— a workflow for driving the user's logged-in Chrome atx.com/searchto read results with the full advanced-search operator set, reaching past the public API's ~7-day recent-search ceiling.There was no
x/twitter domain skill before, so the next harness run on X starts ahead.Captures:
?q=...&f=live|top) and the advanced-search operator table (since:/until:for any date window,min_faves:,from:,filter:,lang:, boolean groups)./loginredirect and stop, never type credentials.[role=group][aria-label]carries the exact integers.js()extractor that emits the universal SourceItem shape directly, a full capture snippet, and a traps list.🤖 Generated with Claude Code
Summary by cubic
Add a logged-in X (Twitter) web-search workflow that uses advanced operators and reaches beyond the public API’s ~7‑day window. Includes a robust extractor and guidance for virtualized lists and auth walls.
domain-skills/x/search.mdto drivex.com/search(?q=...&f=live|top) using the logged-in session.q(since:/until:,min_faves:,from:,filter:,lang:, boolean).js()extractor + capture snippet.Written for commit d0c35f1. Summary will update on new commits.