- this script provides functionaliteis for scrapping info from OP.GG and saves to csv for further analysis
# get top 500 players in euw and save
players = opgg_scrapper.get_top_N_players(500,driver , region='euw')
# get top 500 players in euw and save
opgg_scrapper.create_dataframe_from_players(players).to_csv('players_euw.csv')
- Can force the scrapper to update using the force_update parameter
# get top 500 players in euw and save
games = opgg_scrapper.get_player_N_games( player_name= "Δ Desperate" ,region='eune', driver_insance=driver , N=200 , force_update= False, force_ranked_only=True)
# get top 500 players in euw and save
opgg_scrapper.create_dataframe_from_game_records(games).to_csv('games_first_euw.csv')
driver = opgg_scrapper.get_chrome( headless=True , adblock_extenstion_path='extension_2023_9_10_1131.crx')
This project is licensed under the MIT License - see the LICENSE file for details