GuglielmoTor commited on
Commit
f5113bb
·
verified ·
1 Parent(s): 3a059ad

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
@@ -291,7 +291,7 @@ def compile_detailed_posts(processed_raw_posts, stats_map, sentiments_per_post):
291
  "category": proc_post["category"],
292
  "author_urn": proc_post["author_urn"],
293
  "is_ad": proc_post["is_ad"],
294
- "media_type": proc_post["media_type"],
295
  "published_at": proc_post["published_at_iso"] # ISO format datetime string
296
  })
297
  logging.info(f"Compiled {len(detailed_post_list)} detailed posts.")
@@ -315,7 +315,7 @@ def prepare_data_for_bubble(detailed_posts, all_actual_comments_data):
315
  "author_urn": post_data["author_urn"],
316
  "id": post_data["id"], # Post URN
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": post_data["raw_text"], # Storing the full raw text
 
291
  "category": proc_post["category"],
292
  "author_urn": proc_post["author_urn"],
293
  "is_ad": proc_post["is_ad"],
294
+ #"media_type": proc_post["media_type"],
295
  "published_at": proc_post["published_at_iso"] # ISO format datetime string
296
  })
297
  logging.info(f"Compiled {len(detailed_post_list)} detailed posts.")
 
315
  "author_urn": post_data["author_urn"],
316
  "id": post_data["id"], # Post URN
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": post_data["raw_text"], # Storing the full raw text