shaheriar / VALWATCH

Valorant Stats Tracker Discord Bot
MIT License
13 stars 3 forks source link

Error #5

Open YoussefSuS opened 1 year ago

YoussefSuS commented 1 year ago

Everytime i try to search for a player it says this : Error This bot uses Tracker.GG to get the data about player stats. It seems like Tracker.GG does not want web scraping to be done on their website which is why they are performiing a crackdown on all web scraping bots. I will try to find a different way to get player data but for now this bot is out of commission.

so are u going to add a API to get player stats or how can i fix?

image

shaheriar commented 1 year ago

I haven't gotten the time to try and look for a fix but it looks like I'd have to bypass the captcha somehow which I haven't figured out how to do. That print statement happens at line 101 due to an exception. The error message should pop up in your terminal. This error message occurs because of two reasons:

  1. Tracker.GG has updated their html structure and valorantstats.py is out of date.
  2. They have implemented a captcha which redirects the webscraper to the captcha page, not the actual tracker page. This leads to invalid webscraping.

If you want to give a go at trying to fix it, feel free! :)