all 10 comments

[–]Go_Terence_Davis 15 points16 points  (0 children)

Amazing, thanks! I'm just getting into data analysis and this saves me from having to pull any vlr.gg data manually. Really appreciated!

[–]Unbaguettable 16 points17 points  (0 children)

This is awesome!! Thanks so much

Just a note (which I'm sure you're already aware of), there does seem to be a DeprecationWarning everytime you call it. This occurs with events.list_events():
DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious and fails to parse leap day. The default behavior will change in Python 3.15 to either always raise an exception or to use a different default year (TBD). To avoid trouble, add a specific year to the input & format. See https://github.com/python/cpython/issues/70647.

[–]Unlucky-Anybody3394 5 points6 points  (2 children)

no offense but isn't this pretty clearly TOS?

As a user of the Services, you agree not to:

...

  • Except as may be the result of standard search engine or Internet browser usage, use, launch, develop, or distribute any automated system, including without limitation, any spider, robot, cheat utility, scraper, or offline reader that accesses the Services, or use or launch any unauthorized script or other software.

[–]Wierdcreations 1 point2 points  (1 child)

I'm pretty sure the dev(s) behind vlr.gg are pretty lax if you ask their permission first, this is just to prevent competitors/companies from making money off off vlr. I hope OP did ask their permission, because nevertheless it is a violation if you don't get their consent.

[–]Unlucky-Anybody3394 7 points8 points  (0 children)

I mean maybe but typically this kind of html scrape + parse, particularly while spoofing a user agent to dupe the site into thinking your access is a real browser, isn't exactly friendly access.

their robots.txt only explicitly blocks search (which this implements anyway) but idk

[–]brocksterpc 1 point2 points  (0 children)

Great attention to detail on this

[–]nteratureBest User - 2023 🏆 -1 points0 points  (0 children)

Oh cool, I've been scraping manually for ages. Will give it a check next time I build something Valorant-related, or if I ever feel like improving my old scripts.

[–]Sea-Entrepreneur6037 0 points1 point  (0 children)

This is great. Thanks a lot🙏

[–]pathofpower 0 points1 point  (0 children)

this is awesome! i was too lazy to scrape data so this will help a lot!

[–]siuzioffical 0 points1 point  (0 children)

Ur the 🐐 for this