chess.com/live Python Scraping

Sort:
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

MGleason

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

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 ?

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.

thegadgettechie

You can use selenium or bs4 to do the thing.

nanobruh
thegadgettechie wrote:

You can use selenium or bs4 to do the thing.

Did you actually read my previous replies ?

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