GuglielmoTor commited on
Commit
7e61a73
·
verified ·
1 Parent(s): 92fd5a6

Update analytics_fetch_and_rendering.py

Browse files
Files changed (1) hide show
  1. analytics_fetch_and_rendering.py +9 -0
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 = []