Open saahilp opened 5 months ago
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'))
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
This is what the output and stack trace is.
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?
should be able to use a driver that is recognized as a user
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
This is what the output and stack trace is.
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?