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

Is it impossible to use functions such as pd.read_html or requests.get in Judge? #918

Open
pgworld opened this issue Mar 20, 2023 · 1 comment

Comments

@pgworld
Copy link

pgworld commented Mar 20, 2023

I tried to read a certain table from the web through pd.read_html in the Judge environment.

However, in my opinion, it is probably impossible to access from judge to web.

At first I thought it was a problem with pandas, but the same thing happened with the requests module.

Any workaround? (All necessary system calls have been mapped through judge_client debugging.)

here is the example code.

import pandas as pd

response = pd.read_html('https://github.com/zhblue/hustoj')

response.head()
@zhblue
Copy link
Owner

zhblue commented Mar 20, 2023

It is supposed that way and I hope no work around ,or your server will be vulnerable to hacker's attack.

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