Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Selector problem on CodeForcesScraper.py #13

Open
RaiyanMahin opened this issue Apr 9, 2023 · 7 comments
Open

CSS Selector problem on CodeForcesScraper.py #13

RaiyanMahin opened this issue Apr 9, 2023 · 7 comments

Comments

@RaiyanMahin
Copy link

RaiyanMahin commented Apr 9, 2023

Hi Srivaths, As I told u on CF that, while I tried to upload my CF solution using UpCode, I got a error message.
My Atcoder submissions are fetched but not the CF and Codechef
I copied it and asked chatgpt. so the error looks like this

from chatgpt

"It seems that an error has occurred while running the code. The error message indicates that there was a NoSuchElementException caused by Unable to locate element when trying to locate an element using a CSS selector.

This occurred in the file CodeForcesScraper.py on line 72 when trying to locate an element using the CSS selector #sidebar > div.roundbox.sidebox.status-filter-box > div:nth-child(5) > form > div:nth-child(4) > input[type=submit]:nth-child(1).

This error could be caused by a change in the HTML structure of the page or the element may not exist at the time the script is being run. You may need to check if the CSS selector used is still valid and if the element being selected is available on the page."

I think CSS needs to be updated.
please check and tell me how to resolve it.

@CrapTheCoder

@CrapTheCoder
Copy link
Owner

CrapTheCoder commented Apr 9, 2023

@RaiyanMahin Please provide the error message itself, rather than the conversation you had with ChatGPT

@RaiyanMahin
Copy link
Author

@CrapTheCoder

The error message is:

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"#sidebar > div.roundbox.sidebox.status-filter-box > div:nth-child(5) > form > div:nth-child(4) > input[type=submit]:nth-child(1)"}

@CrapTheCoder
Copy link
Owner

Thank you! I will take a look

@RaiyanMahin
Copy link
Author

okay let me know the updates

@CrapTheCoder
Copy link
Owner

@RaiyanMahin Please take a look now, it should be fixed

@RaiyanMahin
Copy link
Author

@CrapTheCoder Now, all my CF, atcoder submissions are fetched but not the codechef soln :3
don't know why. In terminal, there is also no message showing.
However thanks!

@RaiyanMahin
Copy link
Author

I also tried with only chef username still nothing on terminal.
Maybe as chef UI updated, some issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants