aboutsummaryrefslogtreecommitdiff
path: root/castle-search/src/x-search.ts
AgeCommit message (Collapse)Author
6 dayscastle-search: let an X page's first screen settle before reading itIgor Soarez
Photos, link cards and a post's replies render after the post itself; a read taken at once could miss them. Wait until two readings agree.
6 dayscastle-search: X.com: read posts whole with thread and replies, profiles, trendsIgor Soarez
/x-post, /x-user and /x-trends beside /x-search, sharing its limits and its sign-in. Posts now carry photos (image link, alt text), videos, link cards and the quoted post's time. A post's own page lists the quoted post's time first; the probe now takes the post's own linked time.
6 dayscastle-search: sign X back in when a search finds it signed outIgor Soarez
Username, password, the authenticator code (TOTP) and, when X asks, the code it emails, read over IMAP. At most one try per 30 minutes, the password never sent twice, and any unknown step (a captcha) fails saying a person has to sign in. Details from the file CCS_X_LOGIN_FILE names.
6 dayscastle-search: limit X searches so the account reads X like a personIgor Soarez
One at a time, 10 s apart (a sooner one waits), at most 30 an hour and 150 a day; over a cap a search fails at once, saying when the next may run.
6 dayscastle-search: search X over HTTP, through the browser's signed-in sessionIgor Soarez
POST /x-search reads x.com/search in a background tab: posts with their link, author, time, text, counts and quoted post, scrolling for up to 20. GET /openapi.json describes it for Open WebUI's tool servers. Signed out, an X error page or a stuck page are errors, never an empty list.