• Baseball
  • Basketball
  • Esports
  • Football
  • Golf
  • MMA
  • Nfl
  • Tennis
  • WWE
Friday, July 4, 2025
  • Login
  • Baseball
  • Basketball
  • Esports
  • Football
  • Golf
  • MMA
  • Nfl
  • Tennis
  • WWE
No Result
View All Result
Dark Sports
  • Baseball
  • Basketball
  • Esports
  • Football
  • Golf
  • MMA
  • Nfl
  • Tennis
  • WWE
No Result
View All Result
Dark Sports
No Result
View All Result
Home Esports

League of Legends Ban Check: Is Your Friend Banned LOL?

admin@cpwss2d by admin@cpwss2d
03/29/2025
in Esports
0 0
0
League of Legends Ban Check: Is Your Friend Banned LOL?
Share on FacebookShare on Twitter

Okay, so today I’m gonna walk you through this little side project I did – a League of Legends ban check tool. Nothing super fancy, but it scratched an itch I had and I figured someone else might find it useful, or at least find the process interesting.

League of Legends Ban Check: Is Your Friend Banned LOL?

It all started ’cause I was tired of dodging games in champ select. You know how it is, you get into a lobby and someone’s already instalocked Yasuo mid with a 40% win rate? Or maybe someone is first timing a champ in ranked. I wanted a quick way to check everyone’s stats before the game started so I could make a more informed decision about dodging. Less LP loss, you know?

First, I had to figure out how to get the data. Riot’s API is the obvious choice, but it’s a bit of a pain to get started. I spent a good chunk of time just figuring out the authentication process and getting my API key. Pro tip: read the documentation carefully. I skimmed it the first time and wasted an hour because I missed a crucial step. Learn from my mistakes!

Next up: figuring out the API endpoints. Riot’s API is pretty well-documented once you get the hang of it, but there are a lot of endpoints. I needed to find the ones that would give me the summoner’s name, their ranked stats, and their recent match history. It took some trial and error, and a lot of * debugging, but eventually I found the right ones.

Once I had the data flowing, I needed to actually do something with it. I decided to use Python, mostly because I’m most comfortable with it. I used the `requests` library to make the API calls and `json` to parse the responses. I also used `pprint` just to make the output a little easier to read while I was developing.

Here’s a simplified version of the code I ended up with:

  • First, you have to use your api key after you get it.
  • Second, you have to use the summoner name of any player you want to inspect.

python

import requests

import json

League of Legends Ban Check: Is Your Friend Banned LOL?

from pprint import pprint

API_KEY = “YOUR_API_KEY” # Replace with your actual API key

def get_summoner_info(summoner_name):

url = f”*.com/lol/summoner/v4/summoners/by-name/{summoner_name}?api_key={API_KEY}”

response = *(url)

*_for_status() # Raise HTTPError for bad responses (4XX or 5XX)

return *()

def get_ranked_stats(summoner_id):

League of Legends Ban Check: Is Your Friend Banned LOL?

url = f”*.com/lol/league/v4/entries/by-summoner/{summoner_id}?api_key={API_KEY}”

response = *(url)

*_for_status()

return *()

def main():

summoner_name = input(“Enter summoner name: “)

try:

summoner_info = get_summoner_info(summoner_name)

League of Legends Ban Check: Is Your Friend Banned LOL?

summoner_id = summoner_info[‘id’]

ranked_stats = get_ranked_stats(summoner_id)

print(f”Summoner Name: {summoner_info[‘name’]}”)

if ranked_stats:

for queue in ranked_stats:

print(f” Queue Type: {queue[‘queueType’]}”)

print(f” Rank: {queue[‘tier’]} {queue[‘rank’]}”)

print(f” LP: {queue[‘leaguePoints’]}”)

League of Legends Ban Check: Is Your Friend Banned LOL?

print(f” Wins: {queue[‘wins’]}”)

print(f” Losses: {queue[‘losses’]}”)

else:

print(” Unranked”)

except * as e:

print(f”Error: {e}”)

except KeyError as e:

print(f”Error: Could not find key: {e}”)

League of Legends Ban Check: Is Your Friend Banned LOL?

except Exception as e:

print(f”An unexpected error occurred: {e}”)

if __name__ == “__main__”:

main()

This script takes a summoner name as input, fetches their summoner ID, and then retrieves their ranked stats. It prints out the summoner’s name, their rank in each queue, their LP, and their win/loss ratio. Pretty basic, but it’s a start.

The error handling isn’t perfect. Riot’s API can be flaky sometimes, and I didn’t want the whole script to crash if it just couldn’t find a summoner or something. The `try…except` blocks catch common errors like HTTP errors and missing keys in the JSON response.

So, that’s it! It’s not the most polished or feature-rich tool, but it does the job. I’ve found it helpful for making those last-second dodge decisions. Maybe it’ll be helpful for you too, or at least give you some ideas for your own projects. Happy coding!

admin@cpwss2d

admin@cpwss2d

Next Post
Any updates to ncaa pitch count rules 2024? Stay informed about the latest changes this season.

Any updates to ncaa pitch count rules 2024? Stay informed about the latest changes this season.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Connect with us

  • 23.9k Followers
  • Trending
  • Comments
  • Latest
mlb the show symbols explained: Easy guide for all the icons!

mlb the show symbols explained: Easy guide for all the icons!

02/14/2025
Brittney Griner as a Kid:  Unseen Pictures and Untold Stories.

Brittney Griner as a Kid: Unseen Pictures and Untold Stories.

01/14/2025
How to Reach SOL3 Phase 5 in Wuthering Waves: A Step-by-Step Guide

How to Reach SOL3 Phase 5 in Wuthering Waves: A Step-by-Step Guide

11/13/2024
Green Shirt Guy WWE: The Story Behind the Famous Wrestling Fan!

Green Shirt Guy WWE: The Story Behind the Famous Wrestling Fan!

12/28/2024
Rashee Rice vs. Michael Wilson: Who to Start in Fantasy Football?

Rashee Rice vs. Michael Wilson: Who to Start in Fantasy Football?

0
Is Bray Wyatt the Final Member of Wyatt Sick 6? Meet WWEs Spooky Faction

Is Bray Wyatt the Final Member of Wyatt Sick 6? Meet WWEs Spooky Faction

0
Raul Rosas Jr. Net Worth: How Much is the UFC Star Worth in 2024?

Raul Rosas Jr. Net Worth: How Much is the UFC Star Worth in 2024?

0
Dominate with Grom in Brawl Stars: Optimal Builds and Gameplay

Dominate with Grom in Brawl Stars: Optimal Builds and Gameplay

0
Sportspyder: Latest LA Dodgers News and Trade Rumors

Sportspyder: Latest LA Dodgers News and Trade Rumors

04/17/2025
What is Monaleos Net Worth? Breaking Down Her Income!

What is Monaleos Net Worth? Breaking Down Her Income!

04/17/2025
Like Some Schools NYT Crossword Clue? Tips inside!

Like Some Schools NYT Crossword Clue? Tips inside!

04/17/2025
Excite Crossword Tips: Become a Puzzle Master Now

Excite Crossword Tips: Become a Puzzle Master Now

04/17/2025

Recommended

Sportspyder: Latest LA Dodgers News and Trade Rumors

Sportspyder: Latest LA Dodgers News and Trade Rumors

04/17/2025
What is Monaleos Net Worth? Breaking Down Her Income!

What is Monaleos Net Worth? Breaking Down Her Income!

04/17/2025
Like Some Schools NYT Crossword Clue? Tips inside!

Like Some Schools NYT Crossword Clue? Tips inside!

04/17/2025
Excite Crossword Tips: Become a Puzzle Master Now

Excite Crossword Tips: Become a Puzzle Master Now

04/17/2025

About Us

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

Read more

Categories

  • Baseball
  • Basketball
  • Esports
  • Football
  • Golf
  • MMA
  • Nfl
  • Tennis
  • WWE

Recent News

Sportspyder: Latest LA Dodgers News and Trade Rumors

Sportspyder: Latest LA Dodgers News and Trade Rumors

04/17/2025
What is Monaleos Net Worth? Breaking Down Her Income!

What is Monaleos Net Worth? Breaking Down Her Income!

04/17/2025

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Baseball
  • Basketball
  • Esports
  • Football
  • Golf
  • MMA
  • Nfl
  • Tennis
  • WWE

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In