Flair + Name
0-3
Flag: | Pakistan |
Registered: | May 8, 2023 |
Last post: | November 17, 2024 at 12:54 PM |
Posts: | 6899 |
dr pepper is already pretty cherryish ngl and i just dont fuck with pepsi
im getting tired of coke zero, i thikn its time for me to to move onto diet dr pepper
u cant with your name
ur associated with kirya, which kinda just makes everything you do pathetic
just your own words 🤷♂️🤷♂️🤷♂️
don’t be talking all high and mighty if you can’t formulate your thoughts well
be respectful and a good person
wealthy western world 😭😭😭😭
you’re saying being poor and non western makes people transphobic ???
americans so easy to bait when it’s just asking to be respectful lol
that was so cringe
TMV probably busted a load when he saw how bad SEN played in the finals
He's had some hate vendetta against SEN for a while, and looked miserable when SEN won madrid lol
He's a fucking idiot
My heart is pounding as I wait for Yay’s return. I can’t think straight. Everything feels tense and locked up inside me. I need a release. Yay, please do something. Just one play. One clutch moment. Then I’ll finally feel like I can breathe again.
Yayster, My King, He's Here.
me too bro it’s never been like this before
i remember you crying with snot saying you were quitting vlr the day tenz retired after u got banned 😅😅😅
K0rya
Why don't you put on a little show for us femboy
that yay hate tiktok account is crazy too
This weekend the glorious king is back
I'll be conflicted when EG play SEN, but I'll be there no matter what
I hope he doesn't bot out though....that tiktok yay account gonna get revived then
why is there a bo1 in playoffs for this tourney
holy mickey mouse
the fuck???
my cats have way easier lives than me
they should feel bad for me instead of me feeling bad for them
Yeahhhhhhhhh you got me thinking with this comment, just coded it. Was pretty fun
The below code gives me these all time avg stats for flor though:
{'player_name': 'florescent', 'rnd': 451, 'rating': 1.5, 'acs': 284.03, 'kd': 1.9, 'adr': 184.59, 'kast': 81, 'kpr': 1.03, 'apr': 0.38, 'fkpr': 0.11, 'fdpr': 0.07, 'k': 463, 'd': 302, 'a': 99, 'fk': 90, 'fd': 52}
import requests
from bs4 import BeautifulSoup
player_stats_template = {
"player_name": "", # Player's name
"rnd": 0, # Number of rounds played
"rating": 0.0, # Player rating
"acs": 0.0, # Average combat score
"kd": 0.0, # Kill/Death ratio
"adr": 0.0, # Average damage per round
"kast": 0, # Kill, Assist, Survive, or Traded percentage
"kpr": 0.0, # Kills per round
"apr": 0.0, # Assists per round
"fkpr": 0.0, # First kills per round
"fdpr": 0.0, # First deaths per round
"k": 0, # Total kills
"d": 0, # Total deaths
"a": 0, # Total assists
"fk": 0, # Total first kills
"fd": 0 # Total first deaths
}
TOTAL_MAX_PLAYERS = 48850 # total number of players on vlr to potentially scrape
def get_player_data(player_num):
url = f"https://www.vlr.gg/player/{player_num}/?timespan=all"
response = requests.get(url)
if response.status_code != 200:
return None
soup = BeautifulSoup(response.content, 'html.parser')
# player name ^-^
player_name_tag = soup.find('h1', class_='wf-title')
player_name = player_name_tag.text.strip() if player_name_tag else player_num
player_stats_template["player_name"] = player_name
accumulator = {key: 0 for key in player_stats_template if key != "player_name"}
num_rows = 0
stat_keys = list(player_stats_template.keys())[1:]
# get stats table
table = soup.find_all('table', class_='wf-table')
for ratings_tag in table:
tbody = ratings_tag.find('tbody')
if tbody:
rows = tbody.find_all('tr')
for row in rows:
# extract all td that do not have a style attribute (no agent img & use % )
cols = row.find_all('td')
row_values = [col.text.strip() for col in cols if not col.has_attr('style')]
# If the number of columns matches our expected stats, process the row
if row_values and len(row_values) == len(stat_keys):
for i, key in enumerate(stat_keys):
# Accumulate values based on the key's expected data type
if isinstance(player_stats_template[key], int):
accumulator[key] += int(row_values[i].replace('%', ''))
else:
accumulator[key] += float(row_values[i])
num_rows += 1
# calculate averages
if num_rows > 0:
for key in accumulator:
if isinstance(player_stats_template[key], int):
# for intege use floor division
player_stats_template[key] = accumulator[key] // num_rows
else:
# for floating point round to two decimal places
player_stats_template[key] = round(accumulator[key] / num_rows, 2)
return player_stats_template
# florescent
player_num = '17976'
player_data = get_player_data(player_num)
if player_data:
print(player_data)
# Uncomment the code below to iterate through every player up to TOTAL_MAX_PLAYERS
# for i in range(1, TOTAL_MAX_PLAYERS + 1):
# player_num = str(i) # Convert player number to string for URL construction
# player_data = get_player_data(player_num)
# if player_data:
# print(player_data)
# break # Stop after finding and printing the first valid player data
Is this stats for their current team only or all time?
If its all time I think its off btw cause flors avg rating all time rating is 1.50
ratings = [1.41, 1.37, 1.28, 1.29, 1.39, 1.13, 1.14, 1.51, 1.17, 1.37, 1.58, 1.42, 1.35, 1.77, 1.69, 1.71, 1.72, 1.53, 1.67, 1.12, 1.63, 2.12, 1.42, 2.23]
total_sum = sum(ratings)
count = len(ratings)
average_rating = total_sum / count
print(average_rating) #1.5008333333333332
must not be a good researcher then lol
you’re a local vlr bot
they had pro players hate on them cause they trolled so much
Well there was a ferrari thread by you…