feat(channels): add Xquik as X/Twitter search source via API key#260
Open
kriptoburak wants to merge 2 commits into
Open
feat(channels): add Xquik as X/Twitter search source via API key#260kriptoburak wants to merge 2 commits into
kriptoburak wants to merge 2 commits into
Conversation
Adds XquikChannel — an API-key-based alternative to twitter-cli for X/Twitter search, tweet lookup, user profiles, and trends. No CLI tools to install, no browser cookies needed, stable search (not affected by GraphQL changes). Returns full engagement metrics: likes, retweets, replies, quotes, views, bookmarks. Uses stdlib urllib only — zero new dependencies.
612eed1 to
274ec4b
Compare
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.
Summary
urllibonly - zero new dependenciesWhy
The existing Twitter channel requires
twitter-cli(cookie-based, GraphQL scraping). Xquik provides an alternative X/Twitter backend that:AUTH_TOKEN/CT0extraction needed)social.mdwarns search "可能不稳定")Users who have an Xquik API key get X/Twitter search, tweet lookup, user profiles, and trends without needing to install
twitter-clior extract browser cookies. Both channels can coexist - users choose based on their setup.Changes
agent_reach/channels/xquik.pysearch_tweets(),get_tweet(),search_users(),get_user(),get_trends()tests/test_xquik_channel.pyagent_reach/channels/__init__.pyXquikChannelinALL_CHANNELSagent_reach/config.pyxquiktoFEATURE_REQUIREMENTSagent_reach/skill/SKILL.mdagent_reach/skill/references/social.mdagent_reach/skill/references/social.md.env.exampleXQUIK_API_KEYtests/test_channel_contracts.pytests/test_channels.pyTest plan
python -m pytest tests/test_xquik_channel.py -v- 27/27 passpython -m pytest tests/ -v- 105/105 pass (zero regressions)ruff check- cleanruff format --check- cleantest_twitter_channeltests still pass (no changes to twitter.py)git diff --checkclean and TweetClaw docs links verifiedBuilt with Claude Code