marlow
Flag: United Kingdom
Registered: May 30, 2021
Last post: September 30, 2024 at 11:26 AM
Posts: 118
1 2 3

Bleed.

posted 1 month ago

electric

posted 5 months ago

accusing a community is only wrong if the accusations themselves are wrong

posted 5 months ago

no flair discussing flairs hmmmmmm

posted 5 months ago

cant let gang know i fuck w this

posted 6 months ago

?

posted 6 months ago

honestly i dont know enough about it in practice to know if it'd work well, but that makes sense

posted 6 months ago

i think hamming distance relies on the object and target being the same size/length though, so might not work well

posted 6 months ago

this would genuinely take a bajillion years

posted 6 months ago

should have it set up for users by september, depends how often i get to work on it

i unfortunately got beaten to the idea by another guy (cant remember his sites name), but im mainly just doing this for a personal project

posted 6 months ago

yeah thats a good point, thanks. I'll set the whole file up as a function to call for different parts of the site I think. Its very bare bones atm and it only works for individual leagues during splits (it gets really complicated when teams are playing different amounts of matches).

posted 6 months ago

trying to make a VLR fantasy league site, so converting the stats page - with relevant parameters - into csv file/mysql database. pretty low level but ive got it working alright now. using it for a stats page on my site, and to be able to have the data for when players want to have their own teams. makes it a lot more efficient than sending GET requests for everything client side.

def scrapeStats(url):
getResponse = requests.get(url)
#verifying successful request response
if getResponse.statuscode == 200:
#parse HTML content
doc = BeautifulSoup(getResponse.content, "html.parser")
#saving only table data
table = doc.find(class
='wf-card mod-table mod-dark')
headers = []
rows = []
#extract and fill the header and row arrays with table data
for th in table.find_all('th'):
headers.append(th.text.strip())
for tr in table.find_all('tr')[1:]:
row = []
for td in tr.find_all('td'):
row.append(td.text.strip())
rows.append(row)
return headers, rows
else:
#in case of unsuccessful request response
print("Request Error")
return None, None

def clean_data(headers, rows):
#appending new team column
for row in rows:
player_name = row[0]
team_name = player_name.split()[-1]
row.append(team_name)
#deleting redundant agents column
agents_index = headers.index('Agents')
for row in rows:
del row[agents_index]
del headers[agents_index]

def save_to_csv(headers, rows, fileName):
with open(fileName, 'w', newline='') as csvFile:
writer = csv.writer(csvFile)
#write headers and rows
#create team header
writer.writerow(headers + ['Team'])
for row in rows:
writer.writerow(row)
print(f"Data has been saved to {fileName}")

def main():
#change this depending on the vlr stats page that you want it to scrape from
url = "https://www.vlr.gg/event/stats/1921/champions-tour-2024-masters-madrid?exclude=&min_rounds=0&agent=all"
#created CSV file name
fileName = 'vlr_stats.csv'
#scraping data
headers, rows = scrapeStats(url)
#check data is retrieved successfully
if headers and rows:
#clean data
clean_data(headers, rows)
#save data to CSV file
save_to_csv(headers, rows, fileName)

if name == "main":
main()

posted 6 months ago

yeah im working on a webscraper from VLR atm but for stats only, messages sounds horrific in comparison. Don't have a good enough understanding for evaluating efficiency. Although I think there are fuzzy matching packages for the sort of stuff you're looking into.

posted 6 months ago

tbh i think that you'll be able to find an open-source program to do this for you, but if you wanted to do it yourself i think you could try to tokenise keywords - so it evaluates a specific order of tokens as the target phrase. idk how you'd actually code this though

posted 6 months ago

upvoted + modded

posted 6 months ago

challengers realistically

posted 6 months ago

watch literally any live sport

posted 7 months ago

acoustic gentleman i see

posted 7 months ago

is the goat

posted 7 months ago

they had a a retake setup the whole game so if john gets no contact elbow then its that setup lmao

posted 7 months ago

jeremy clarkson is a better farmer

posted 8 months ago

comp was not an issue

posted 8 months ago

feel bad for the casters like tf they supposed to do there

posted about a year ago

AND THEN EVERYBODY CLAPPED

posted about a year ago

grinning rn

posted about a year ago

more that zekken struggles on controller ig

posted about a year ago

physically convulsed @riot BAN HIM

posted about a year ago

@mods doing sum webscraping of the stats page and I noticed that s0m's team is apparently 'Team' right now. Could we get a fix pls? :)

not an NRG problem Crashies is fine

posted about a year ago

wym coping they are bro LMAO

posted about a year ago

calm down lol

posted about a year ago

just changed my pickems to VIT winning because of this

posted about a year ago

on map 3???? neon for kayo would be a massive troll

posted about a year ago

thats pretty funny icl

posted about a year ago

i do believe in him also my good sir

posted about a year ago

@mods get him

posted about a year ago

thats ranked cuzzo

posted about a year ago

uh oh

posted about a year ago

shadow fight 3 reference????????????

posted about a year ago

C9 yay lover I have decided that you have fallen off

posted about a year ago

stats meh but HE GOT THAT DAWG IN HIM

posted about a year ago

take notes kiddo

posted about a year ago

Thank you.

SigmaMale do what you know is right.

posted about a year ago

personally i disagree with this

take it down

posted about a year ago

nice thread bro

posted about a year ago

w for him tbh it slaps

posted about a year ago

vlr users when tier 2 igl is tier 2 igl

posted about a year ago

stream when????

posted about a year ago

zayta

posted about a year ago
1 2 3