Spaces:
Running
Running
Update analytics_fetch_and_rendering.py
Browse files
analytics_fetch_and_rendering.py
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
def extract_follower_gains(data):
|
2 |
"""Extracts monthly follower gains from API response."""
|
3 |
results = []
|
|
|
1 |
+
import json
|
2 |
+
import requests
|
3 |
+
from sessions import create_session
|
4 |
+
from datetime import datetime, timezone, timedelta # Added timezone, timedelta
|
5 |
+
|
6 |
+
|
7 |
+
API_V2_BASE = 'https://api.linkedin.com/v2'
|
8 |
+
API_REST_BASE = "https://api.linkedin.com/rest"
|
9 |
+
|
10 |
def extract_follower_gains(data):
|
11 |
"""Extracts monthly follower gains from API response."""
|
12 |
results = []
|