Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Poker Datamine

by talexb (Canon)
on Oct 02, 2013 at 15:17 UTC ( #1056624=note: print w/replies, xml ) Need Help??

in reply to Poker Datamine

I'm not sure how the bet365 poker application works, but the one I play via Facebook (Zynga Poker) is a Java application, and it's going to be challenging to scrape the dealer chat from that.

You'd also like to know how many players there are, and where you are relative to the dealer; that information can be inferred from the dealer chat I have, but the sooner you have that the better. (For example, if you're the first to be asked for a bet, that means the big blind's on your right -- but you still don't know whether there's a full table, or it's heads-up. And that makes a difference to your odds, and therefore to your strategy.)

Once you have access to that information, it would be possible to give you live odds on your hand, and from there make some recommendations on strategy. I'm not sure I'd call that data-mining.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^2: Poker Datamine
by bennierounder (Sexton) on Oct 02, 2013 at 15:58 UTC
    I'm wondering if perl can be used to scrape the interface. I was hoping that the number of players and the chip stacks could be scraped from the boxes displaying player names and chip stacks above the players. The dealer tells you who is dealing it goes a little like this in the chat if you set it up right.

    Dealer: Starting a new hand (#5144656552)
    Dealer: kurafinger54 posts Small Blind 15
    Dealer: badbeat737 posts Big Blind 30
    Dealer: Dealing cards
    Dealer: FELSINEO77 folds
    Dealer: mayAbax folds
    Dealer: SUPERMESTRE folds
    Dealer: lele02 folds
    Dealer: bf012552 raises to 90
    Dealer: mickdrip folds
    Dealer: ennnache folds
    Dealer: kurafinger54 calls 75
    Dealer: badbeat737 folds
    Dealer: Dealing Flop
    Ts Tc 7s
    Dealer: kurafinger54 checks
    Dealer: bf012552 checks
    Dealer: Dealing Turn
    Ts Tc 7s 2s
    Dealer: kurafinger54 checks
    Dealer: bf012552 checks
    Dealer: Dealing River
    Ts Tc 7s 2s Jc
    Dealer: kurafinger54 checks
    Dealer: bf012552 checks
    Dealer: bf012552 shows One Pair
    Dealer: Game #5144656552: bf012552 wins the main pot (210)
    with One Pair - Ts Tc Jc Qd Ad

    I wasn't this game just observed a table and copied the chat of one hand.

    Getting this information into a database is what I need, but I don't know where to look to get the info. I know it can be done because there are sites that have the info by scraping the page. Perl might not be the answer for this kind of task so I may need to look into learning Java, but I would have thought there would've been a way

    I think when the data is in the database, it will be easy to find a method of finding out poitions and what not, as I'll just work out a formula to give what I need, but first I need to know weather or not I can get this info.
    Any books or webpages with the info would be a start, but I cannot find anything at the moment!

    It's probably a little advanced for me at the minute, but one way or another I am going to build my own working poker pot (for cash games and tournamnets), weather it be a good player or not.

      Yes, Perl can be used to process the data. However, I don't know if it can be used to scrape the data. I'd just start with that and collect the data.

      For me, looking at historical data is of limited use -- if I were going to write anything is this area, I'd write a training tool to give me feedback and/or support on what my hunch says. And to me, that means real-time processing -- I'd want to be piping the dealer chat into a system that would give me immediate feedback.

      So, good luck with your project.

      Alex / talexb / Toronto

      Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

        Yes that's exactly what I want to do, the data I posted was an example of how it appears at each stage of the hand. I will be getting it in real time as the hand goes on and as players make decisions, but I need to know how to get the actions straight into a database.

        If you know of some other way I could scrape the data into an sql data base in real time I could just use perl after that.

        Then work out the rest once I get that far!

        Any site or literature you know I could study to learn this technique would be a great help!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056624]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2018-05-25 13:33 GMT
Find Nodes?
    Voting Booth?