GuglielmoTor commited on
Commit
9995fdc
·
verified ·
1 Parent(s): 9f71fb3

Update Linkedin_Data_API_Calls.py

Browse files
Files changed (1) hide show
  1. Linkedin_Data_API_Calls.py +1 -1
Linkedin_Data_API_Calls.py CHANGED
@@ -64,7 +64,7 @@ def analyze_sentiment(comments_data):
64
  results[post_urn] = {"sentiment": dominant, "percentage": percentage}
65
  return results
66
 
67
- def fetch_posts_and_stats(comm_client_id, community_token, org_urn, count=10):
68
  token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
69
  session = create_session(comm_client_id, token=token_dict)
70
  #org_urn, org_name = fetch_org_urn(comm_client_id, token_dict)
 
64
  results[post_urn] = {"sentiment": dominant, "percentage": percentage}
65
  return results
66
 
67
+ def fetch_posts_and_stats(comm_client_id, community_token, org_urn, count=100):
68
  token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
69
  session = create_session(comm_client_id, token=token_dict)
70
  #org_urn, org_name = fetch_org_urn(comm_client_id, token_dict)