GuglielmoTor commited on
Commit
ee8125f
·
verified ·
1 Parent(s): 159e669

Update apis/__init__.py

Browse files
Files changed (1) hide show
  1. apis/__init__.py +0 -53
apis/__init__.py CHANGED
@@ -9,25 +9,6 @@
9
  # and your third file (with LinkedIn follower stats) is named 'linkedin_follower_stats_handler.py'.
10
  # Please change these names if your files are named differently.
11
 
12
- # --- Imports from linkedin_data_handler.py ---
13
- try:
14
- from .Linkedin_Data_API_Calls import (
15
- extract_text_from_mention_commentary,
16
- get_post_media_category,
17
- fetch_linkedin_posts_core,
18
- fetch_comments,
19
- analyze_sentiment,
20
- compile_detailed_posts,
21
- prepare_data_for_bubble,
22
- fetch_linkedin_mentions_core,
23
- analyze_mentions_sentiment,
24
- compile_detailed_mentions,
25
- prepare_mentions_for_bubble,
26
- )
27
- except ImportError as e:
28
- print(f"Warning: Could not import from linkedin_data_handler.py: {e}")
29
- # You might want to define placeholder functions or raise an error
30
- # if these are critical and the file is missing.
31
 
32
  # --- Imports from bubble_api_handler.py ---
33
  try:
@@ -38,49 +19,15 @@ try:
38
  except ImportError as e:
39
  print(f"Warning: Could not import from bubble_api_handler.py: {e}")
40
 
41
- # --- Imports from linkedin_follower_stats_handler.py ---
42
- try:
43
- from .linkedin_follower_stats import (
44
- get_functions_map,
45
- get_seniorities_map,
46
- get_industries_map,
47
- get_geo_map,
48
- fetch_monthly_follower_gains,
49
- fetch_follower_demographics,
50
- get_linkedin_follower_stats,
51
- )
52
- except ImportError as e:
53
- print(f"Warning: Could not import from linkedin_follower_stats_handler.py: {e}")
54
 
55
  # --- __all__ definition (optional but good practice) ---
56
  # This defines which symbols are imported when a user does `from your_package_name import *`
57
  # It's generally recommended to be explicit with imports, but __all__ can be useful.
58
  __all__ = [
59
- # Functions from linkedin_data_handler
60
- "extract_text_from_mention_commentary",
61
- "get_post_media_category",
62
- "fetch_linkedin_posts_core",
63
- "fetch_comments",
64
- "analyze_sentiment",
65
- "compile_detailed_posts",
66
- "prepare_data_for_bubble",
67
- "fetch_linkedin_mentions_core",
68
- "analyze_mentions_sentiment",
69
- "compile_detailed_mentions",
70
- "prepare_mentions_for_bubble",
71
-
72
  # Functions from bubble_api_handler
73
  "fetch_linkedin_token_from_bubble",
74
  "fetch_linkedin_posts_data_from_bubble",
75
  "bulk_upload_to_bubble",
76
  "update_record_in_bubble",
77
 
78
- # Functions from linkedin_follower_stats_handler
79
- "get_functions_map",
80
- "get_seniorities_map",
81
- "get_industries_map",
82
- "get_geo_map",
83
- "fetch_monthly_follower_gains",
84
- "fetch_follower_demographics",
85
- "get_linkedin_follower_stats",
86
  ]
 
9
  # and your third file (with LinkedIn follower stats) is named 'linkedin_follower_stats_handler.py'.
10
  # Please change these names if your files are named differently.
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  # --- Imports from bubble_api_handler.py ---
14
  try:
 
19
  except ImportError as e:
20
  print(f"Warning: Could not import from bubble_api_handler.py: {e}")
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  # --- __all__ definition (optional but good practice) ---
24
  # This defines which symbols are imported when a user does `from your_package_name import *`
25
  # It's generally recommended to be explicit with imports, but __all__ can be useful.
26
  __all__ = [
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  # Functions from bubble_api_handler
28
  "fetch_linkedin_token_from_bubble",
29
  "fetch_linkedin_posts_data_from_bubble",
30
  "bulk_upload_to_bubble",
31
  "update_record_in_bubble",
32
 
 
 
 
 
 
 
 
 
33
  ]