You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
player.py is not able to extract player information. It is giving error - "'NoneType' object has no attribute 'find_all'" To Reproduce
Just run read me sample:
from espncricinfo.player import Player
p = Player('277916')
p.name
Expected behavior
It should give name of player.
Screenshots Additional context
AttributeError Traceback (most recent call last)
in
1 from espncricinfo.player import Player
----> 2 p = Player('277916')
3 p.name
Describe the bug
player.py is not able to extract player information. It is giving error - "'NoneType' object has no attribute 'find_all'"
To Reproduce
Just run read me sample:
from espncricinfo.player import Player
p = Player('277916')
p.name
Expected behavior
It should give name of player.
Screenshots
Additional context
AttributeError Traceback (most recent call last)
in
1 from espncricinfo.player import Player
----> 2 p = Player('277916')
3 p.name
C:\Python38\lib\site-packages\espncricinfo\player.py in init(self, player_id)
12 self.parsed_html = self.get_html()
13 self.json = self.get_json()
---> 14 self.player_information = self._parse_player_information()
15 self.cricinfo_id = str(player_id)
16 if self.parsed_html:
C:\Python38\lib\site-packages\espncricinfo\player.py in _parse_player_information(self)
58
59 def parse_player_information(self):
---> 60 return self.parsed_html.find_all('p', class='ciPlayerinformationtxt')
61
62 def _name(self):
AttributeError: 'NoneType' object has no attribute 'find_all'
The text was updated successfully, but these errors were encountered: