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

[BUG] Unable to get a player's stats data #64

Open
saahilp opened this issue Feb 23, 2024 · 1 comment
Open

[BUG] Unable to get a player's stats data #64

saahilp opened this issue Feb 23, 2024 · 1 comment
Assignees

Comments

@saahilp
Copy link

saahilp commented Feb 23, 2024

Describe the bug
get_data() method in Player class returns a 403 when it tries to access the html page

To Reproduce
p = Player(47270)
print(p.get_data(None, 1, 'batting', 'match'))

Expected behavior
Should be able to access the html page and cotinue with the parsing process.

Screenshots
I've put a print command to show the contents of the html page

image

This is what the output and stack trace is.

image

The Response <403> is the output from printing the HTML.

Additional context
I'm guessing this is espncricinfo blocking odd requests not coming from browsers? Is there a way to get around this?

@saahilp saahilp changed the title [BUG] [BUG] Unable to get a player's stats data Feb 23, 2024
@RNerd12
Copy link
Contributor

RNerd12 commented Mar 7, 2024

should be able to use a driver that is recognized as a user

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

3 participants