Add TweetClaw export mode#1
Conversation
There was a problem hiding this comment.
💡 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".
| from reddit_bot.sentiment import score_text | ||
|
|
||
|
|
||
| TEXT_FIELDS = ("text", "full_text", "tweet_text", "tweet", "content", "body", "message") |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
Validation