Skip to content

Parse Pokerstars Hand History and calculate total winnings/losses per player, giving rake back to the winners

Notifications You must be signed in to change notification settings

mustafashabib/ps_hh_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Pokerstars Hand History Summarizer

Pokerstars home games take rake even on play money, making it hard to track.

If you record your hand history, this script will recalculate actual chips won/lost per player for every hand and for the entire game.

We have multiple hand histories for every player provided to make sure we don't miss any hands so this script also makes sure to only process hands once since they may appear multiple times in several people's hand history files.

This also includes a file to clean up the holecard information in case you want to share your hand histories with people.

How to use

Clean Hand Histories

> python3 ps_clean.py -i {directory_containing_games_hand_history_files} -o {outputpath}

For example, if you save all hand histories to the path /poker/hands and want to write everything out to /poker/clean then:

> python3 ps_clean.py -i '/poker/hands' -o '/poker/clean'

This will combine all of your hand history files into one file without your hole card information to /poker/clean/clean_hh.txt

Calc Net

> python3 ps_calc.py -i {directory_containing_games_hand_history_files} -o {outputpath}

For example, if you save all hand histories to the path /poker/clean and want to write everything out to /poker/calc then:

> python3 ps_calc.py -i '/poker/clean' -o '/poker/calc'

Two outputfiles will be created in {outputpath}

  1. hand_by_hand.csv: Every hand's winners and total rake
  2. summary.csv: A summary of every players' totals for the entire game.

About

Parse Pokerstars Hand History and calculate total winnings/losses per player, giving rake back to the winners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages