Skip to content

feat(reddit): full .json field coverage (0.10.0)#1

Merged
0xGhostCasper merged 4 commits into
mainfrom
feat/reddit-full-fields
May 30, 2026
Merged

feat(reddit): full .json field coverage (0.10.0)#1
0xGhostCasper merged 4 commits into
mainfrom
feat/reddit-full-fields

Conversation

@0xGhostCasper

Copy link
Copy Markdown
Member

Mirrors the scraper's expanded Reddit field coverage (see scrape-badger/scrapebadger#189). RedditPost 27→75 fields; +RedditAward/RedditUserSubreddit/RedditModeratedSubreddit; moderated subs now populated with mod_permissions. BREAKING (UserModeratedResponse element type, edited bool|float) → 0.10.0. Import-validated.

Expand Reddit response models to every content datapoint the upstream .json
API exposes: RedditPost 27->75 fields (ups/downs/upvote_ratio,
subreddit_subscribers, awards, full flair, media, distinguished, edited, ...),
RedditComment (+controversiality/is_submitter/parent_id/flair/awards),
RedditSubreddit (+subscribers/branding/settings/html descriptions),
RedditUser (+id/karma breakdown/flags/nested profile subreddit). New models
RedditAward, RedditUserSubreddit, RedditModeratedSubreddit; UserModeratedResponse
now returns moderated subs with mod_permissions; SubredditRulesResponse +site_rules.

BREAKING: response shapes change (UserModeratedResponse element type, edited
is bool|float). Bumps 0.9.0 -> 0.10.0.
The 0.9.0 'removed fields absent' guards contradicted the intended field
expansion. Repurpose them to assert the still-excluded per-viewer-session /
mod-only fields are absent, convert the rule guard to a presence check, and
drop RedditAward from the removed-models list (re-introduced in 0.10.0).
@codecov

codecov Bot commented May 30, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@0xGhostCasper
0xGhostCasper merged commit f2c0b40 into main May 30, 2026
7 checks passed
@0xGhostCasper
0xGhostCasper deleted the feat/reddit-full-fields branch May 30, 2026 23:27
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.

2 participants