Spaces:
Running
Running
Update Linkedin_Data_API_Calls.py
Browse files
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=
|
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)
|