|
from Recent_match_scrapper import get_multiple_matches_stats |
|
from Meta_scrapper import get_meta_stats |
|
from Leaderboard_scrapper import scrape_leaderboards |
|
from connection_check import check_connection |
|
from helper import merge_stats, filter_leaderboard, get_player_list |
|
from Player_scrapper import get_multiple_player_stats |
|
from feature_eng import create_champion_features |
|
from Weekly_meta_scrapper import get_weekly_meta |
|
|
|
|
|
|
|
|
|
meta_stats = get_meta_stats() |
|
weekly_meta_stats = get_weekly_meta() |
|
|
|
leaderboard = scrape_leaderboards( |
|
regions=["kr", "euw", "vn", "na"], |
|
pages_per_region=5 |
|
) |
|
|
|
filtered_lb = filter_leaderboard( |
|
df=leaderboard, |
|
tiers=["CHALLENGER"] |
|
) |
|
|
|
|
|
|
|
|
|
player_stats = get_multiple_player_stats(player_list) |
|
recent_stats = get_multiple_matches_stats(player_list) |
|
|
|
|
|
merged_stats = merge_stats(recent_stats, player_stats) |
|
|
|
|
|
training_features = create_champion_features(merged_stats, meta_stats, weekly_meta_stats, consider_team_comp=True) |