chess.com/live Python Scraping

Sort:
Avatar of nanobruh

Hello,

I've been trying to scrap in python the chess.com/live page to know if my friends are playing and instantly open their games links. Unfortunately, I couldn't manage to log into chess.com using the Python cookiejar and requests libraries. Is this even possible/allowed ? Do you have any idea of how I could make it ?

Thank for your answers

Avatar of MGleason

Also, scraping the HTML is not supported and is likely to break any time the site interface is modified.

Avatar of nanobruh
MGleason wrote:

Also, scraping the HTML is not supported and is likely to break any time the site interface is modified.

I've managed to scrap the HTML but could not login. Is that what you mean by scraping the HTML is not supported ?

Avatar of MGleason

No, I mean trying to read any data from the HTML could break, because they might change the interface and that could break what you're doing.

Avatar of thegadgettechie

You can use selenium or bs4 to do the thing.

Avatar of nanobruh
thegadgettechie wrote:

You can use selenium or bs4 to do the thing.

Did you actually read my previous replies ?

Avatar of thegadgettechie
nanobruh wrote:
thegadgettechie wrote:

You can use selenium or bs4 to do the thing.

Did you actually read my previous replies ?

Hey!

 

Yes i did! You can select the input box of the username and password and paste any text over there or if you want to signin using google account it's just a click away. And you can use selenium for all this