From e0913c25e4d95c4cfdaf558c580224acaedb4a10 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Tue, 13 Apr 2021 23:13:27 -0400 Subject: [PATCH] added search term for all categories --- git_search.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/git_search.py b/git_search.py index 0796440..d3d1fee 100644 --- a/git_search.py +++ b/git_search.py @@ -243,6 +243,57 @@ def search_new_repo_by_category(category: str, category, min_stars_number=int(min_stars_number * 0.5) ) + elif category == 'Extended Research': + combined_df = search_repo_multiple_terms(['fraud detection', + 'behavioural finance', + 'corporate finance', + 'financial economics', + 'mathematical finance', + 'liquidity finance', + 'fx trading', + 'company life cycle', + 'merger and acquisition', + 'farmland trading', + 'HFT', + 'high frequency trading' + ], + category, + min_stars_number=int(min_stars_number * 0.5) + ) + elif category == 'Courses': + combined_df = search_repo_multiple_terms(['finance courses', + 'machine learning courses', + 'quantitative finance courses', + 'time series courses', + 'data science courses', + 'financial engineering courses' + ], + category, + min_stars_number=min_stars_number * 2 + ) + elif category == 'Data': + combined_df = search_repo_multiple_terms(['financial data', + 'time series data', + 'company fundamental data', + 'crypto data', + 'earnings data', + 'fixed income data', + 'fx data', + 'etf data', + 'finance database', + 'sec edgar', + 'economic data', + 'investment data', + 'fund data', + 'options data', + 'financial index data', + 'futures data', + 'cryptocurrencies data', + 'money market data' + ], + category, + min_stars_number=min_stars_number + ) # only find ones that need to be inserted if combined_df is not None and not combined_df.empty and existing_repo_df is not None: