Spaces:
Running
Running
Update Linkedin_Data_API_Calls.py
Browse files
Linkedin_Data_API_Calls.py
CHANGED
@@ -19,7 +19,7 @@ API_REST_BASE = "https://api.linkedin.com/rest" # Corrected from API_REST_BASE t
|
|
19 |
# Initialize sentiment pipeline (consider loading it once globally if this module is imported multiple times)
|
20 |
sentiment_pipeline = pipeline("text-classification", model="tabularisai/multilingual-sentiment-analysis")
|
21 |
|
22 |
-
def fetch_linkedin_posts_core(comm_client_id, community_token, org_urn, count=
|
23 |
"""
|
24 |
Fetches raw posts, their basic statistics, and performs summarization/categorization.
|
25 |
Does NOT fetch comments or analyze sentiment.
|
|
|
19 |
# Initialize sentiment pipeline (consider loading it once globally if this module is imported multiple times)
|
20 |
sentiment_pipeline = pipeline("text-classification", model="tabularisai/multilingual-sentiment-analysis")
|
21 |
|
22 |
+
def fetch_linkedin_posts_core(comm_client_id, community_token, org_urn, count=20):
|
23 |
"""
|
24 |
Fetches raw posts, their basic statistics, and performs summarization/categorization.
|
25 |
Does NOT fetch comments or analyze sentiment.
|