Skip to content

Add TweetClaw export mode#1

Open
kriptoburak wants to merge 2 commits into
korbirayen:mainfrom
kriptoburak:codex/import-tweetclaw-export
Open

Add TweetClaw export mode#1
kriptoburak wants to merge 2 commits into
korbirayen:mainfrom
kriptoburak:codex/import-tweetclaw-export

Conversation

@kriptoburak

Copy link
Copy Markdown

Summary

  • Add an offline TweetClaw export mode for scoring reviewed X data without a live token.
  • Accept CSV, JSON, JSONL, and NDJSON exports and reuse MoodMonitor VADER scoring plus CSV output.
  • Lazily import the live X client so local export scoring does not require live API client packages.

Validation

  • Python compile passed for touched modules.
  • Sample TweetClaw JSON export produced 2 scored rows and skipped 1 blank row.
  • Diff check and README link check passed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0104ac1d6a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread twitter_bot/tweetclaw_import.py Outdated
from reddit_bot.sentiment import score_text


TEXT_FIELDS = ("text", "full_text", "tweet_text", "tweet", "content", "body", "message")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Support TweetClaw reply text fields

In the TweetClaw/Xquik reply-export context, rows use tweetText in JSON/CSV exports and the documented JSONL handoff uses reply_text (see https://docs.xquik.com/guides/tweet-replies-export), but neither name is in TEXT_FIELDS. For those exports _first(source, TEXT_FIELDS) returns an empty string and the row is skipped, so valid reply exports produce a zero-row sentiment report; add the official reply text field names here before claiming TweetClaw export support.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant