Update Followers from JSON Data
Extract follower counts from json_data column and update author_followers column in raw tables
How It Works
- This script reads the
json_datacolumn from raw tables - Extracts follower count from various possible locations in the JSON structure
- Updates the
author_followerscolumn with the extracted value - Only updates records where
author_followersis NULL or 0
Note: The script checks multiple JSON paths to find follower data, including:
authorFollowers, author.followers, user.followers,
raw_data.author.followers, and platform-specific paths.