@@ -43,66 +43,66 @@ def run_report(
4343 if date_str is None :
4444 date_str = datetime .now ().strftime ("%Y-%m-%d" )
4545
46- print (f"🚀 Starting GitHub Trending Report for { date_str } " )
47- print (f" Language filter: { language or 'All' } " )
48- print (f" Time range: { since } " )
49- print (f" Analysis type: { analysis_type } " )
50- print (f" Detailed analysis: { 'Yes (Top 5 projects) ' if detailed_analysis else 'No' } " )
46+ print (f"[START] GitHub Trending Report for { date_str } " )
47+ print (f" Language filter: { language or 'All' } " )
48+ print (f" Time range: { since } " )
49+ print (f" Analysis type: { analysis_type } " )
50+ print (f" Detailed analysis: { 'Yes' if detailed_analysis else 'No' } " )
5151 print ()
5252
5353 # Step 1: Fetch trending repositories
54- print ("📥 Fetching trending repositories..." )
54+ print ("[1/4] Fetching trending repositories..." )
5555 try :
5656 repos = fetch_trending (language = language , since = since )
57- print (f" Found { len (repos )} repositories" )
57+ print (f" Found { len (repos )} repositories" )
5858 except Exception as e :
59- print (f"❌ Error fetching trending data: { e } " )
59+ print (f"[ERROR] Fetching trending data: { e } " )
6060 return False
6161
6262 if not repos :
63- print ("⚠️ No repositories found" )
63+ print ("[WARN] No repositories found" )
6464 return False
6565
6666 # Step 2: Analyze with LLM
67- print ("🤖 Analyzing with LLM..." )
67+ print ("[2/4] Analyzing with LLM..." )
6868 try :
6969 analyzer = LLMAnalyzer ()
7070 report = analyzer .generate_daily_report (repos , date_str , detailed_analysis = detailed_analysis )
71- print (" Analysis complete" )
71+ print (" Analysis complete" )
7272 except Exception as e :
73- print (f"❌ Error during LLM analysis: { e } " )
73+ print (f"[ERROR] LLM analysis: { e } " )
7474 # Generate basic report without LLM analysis
7575 report = generate_basic_report (repos , date_str )
76- print (" Generated basic report without LLM analysis" )
76+ print (" Generated basic report without LLM analysis" )
7777
7878 # Step 3: Save locally if requested
7979 if output_local :
80- print ("💾 Saving locally..." )
80+ print ("[3/4] Saving locally..." )
8181 try :
8282 save_local (repos , report , date_str )
83- print (" Saved to local files" )
83+ print (" Saved to local files" )
8484 except Exception as e :
85- print (f"⚠️ Error saving locally: { e } " )
85+ print (f"[WARN] Saving locally: { e } " )
8686
8787 # Step 4: Push to repository if requested
8888 if push_to_repo :
89- print ("📤 Pushing to repository..." )
89+ print ("[4/4] Pushing to repository..." )
9090 try :
9191 pusher = DataPusher ()
9292 results = pusher .push_all (repos , report , date_str )
9393 pusher .update_readme (date_str )
9494
9595 if results ["raw_data" ] and results ["report" ]:
96- print (" Successfully pushed to repository" )
96+ print (" Successfully pushed to repository" )
9797 else :
98- print ("⚠️ Some files failed to push" )
98+ print ("[WARN] Some files failed to push" )
9999 return False
100100 except Exception as e :
101- print (f"❌ Error pushing to repository: { e } " )
101+ print (f"[ERROR] Pushing to repository: { e } " )
102102 return False
103103
104104 print ()
105- print ("✅ Report generation complete!" )
105+ print ("[DONE] Report generation complete!" )
106106 return True
107107
108108
0 commit comments