GuglielmoTor commited on
Commit
9a99f17
·
verified ·
1 Parent(s): 4004355

Update Linkedin_Data_API_Calls.py

Browse files
Files changed (1) hide show
  1. Linkedin_Data_API_Calls.py +2 -2
Linkedin_Data_API_Calls.py CHANGED
@@ -317,7 +317,7 @@ def prepare_data_for_bubble(detailed_posts, all_actual_comments_data):
317
  "is_ad": post_data["is_ad"],
318
  "media_type": post_data["media_type"],
319
  "published_at": post_data["published_at"], # ISO datetime string
320
- "sentiment_overall": post_data["sentiment"], # Overall sentiment of the post based on its comments
321
  "text_content": post_data["raw_text"], # Storing the full raw text
322
  "summary_text": post_data["summary"],
323
  "category_assigned": post_data["category"],
@@ -327,7 +327,7 @@ def prepare_data_for_bubble(detailed_posts, all_actual_comments_data):
327
  # Data for LI_post_stats table in Bubble
328
  li_post_stats.append({
329
  "clickCount": post_data["clicks"],
330
- "commentCount_from_stats": post_data["comments_stat_count"], # From post's own stats
331
  "engagement_rate": post_data["engagement"], # Formatted string e.g., "12.34%"
332
  "impressionCount": post_data["impressions"],
333
  "likeCount": post_data["likes"],
 
317
  "is_ad": post_data["is_ad"],
318
  "media_type": post_data["media_type"],
319
  "published_at": post_data["published_at"], # ISO datetime string
320
+ "sentiment": post_data["sentiment"], # Overall sentiment of the post based on its comments
321
  "text_content": post_data["raw_text"], # Storing the full raw text
322
  "summary_text": post_data["summary"],
323
  "category_assigned": post_data["category"],
 
327
  # Data for LI_post_stats table in Bubble
328
  li_post_stats.append({
329
  "clickCount": post_data["clicks"],
330
+ "commentCount": post_data["comments_stat_count"], # From post's own stats
331
  "engagement_rate": post_data["engagement"], # Formatted string e.g., "12.34%"
332
  "impressionCount": post_data["impressions"],
333
  "likeCount": post_data["likes"],