-
-
Notifications
You must be signed in to change notification settings - Fork 132
Pokerstars hand history parser does not work #37
Comments
I'm also having trouble parsing Pokerstars hand history. I used the setup from https://poker.readthedocs.io/en/latest/handhistory.html Raw data is loaded, but the error below is thrown by
|
Same for me, testing with No Limit Cash Game Hands. Can provide you some examples if needed. |
Same here: self._header_re returns unexpectably: |
I tried to fixed that and will open a pull request soon. But I am not totally done with testing. Maybe someone can support in that case. |
Sounds great! I will be happy to give a feedback once working with the new version. Unfortunately, I'm not able to help much more. |
As far as I can tell, there's still the same problem with regex Johnpc123 mentioned. |
Seems I didn't understand the problem you have. I created a short test in test suite with the first hand from your file and it seems to me the header will be parsed without errors on the bugfix/pokerstars branch.
May you can post a code snippet how you use the library, or how you test it. |
Okay, there was a mistake on my side - header parsing and most of the others work! I've made an adjustment on line 261 of pokerstars.py - changed type from int to Decimal, seems to have helped. Also, when there are more hands in hh file than 1, calling _parse_flop() method throws this InvalidOperation error. Is there a better approach for getting multiple hh parsed then going one-by-one? Can the variable keep data from more hh hands at the same time?
As I'll work more with the parser, I'll give you more feedback, great job! :) |
When pokerstars hand history satisfy one of bellow cases, parser does not work.
player's stack is not integer but float
each hand metadata does not contain
[YYYY/MM/DD hh:mm:ss ET]
for instance,
OK: PokerStars Hand #204460218022: Tournament #2698110868, $1.0+$1.8 USD Hold'em No Limit - Level I (10/20) - 2019/09/20 23:53:29 ET [2013/10/04 13:53:27 ET]
NG: PokerStars Hand #204460218022: Tournament #2698110868, $1.0+$1.8 USD Hold'em No Limit - Level I (10/20) - 2019/09/20 23:53:29 ET
The text was updated successfully, but these errors were encountered: