What's the purpose of the database? Are you hoping to calculate odds based on the past moves of the individuals at the table, or something like that? That could be interesting.

In any case, that's the easy part, if you can get the data. That'll depend on how it gets to the browser. If it's an HTML element being updated with Javascript/Ajax, you might be able to write your own little Javascript app to run in the browser and watch that element, watching for new lines that show up in it and saving them somehow. But if it's Java or some other kind of self-contained application, that won't work.

If you just wanted to save the info for future study, I guess you could do a video capture of that part of the screen and run it through OCR software later. But you want to write a bot, which means you need to get the data as it happens so the bot can act on it quickly. Another possibility would be to sniff the network traffic and pull the chat text out of that, assuming they don't encrypt it. Setting up a proxy server and having your browser connect through that might give you another place to grab it.

I would have guessed that they tried to design those sites/apps specifically to prevent bots from playing. I played for a while in very low-stakes game and determined that I could consistently make a few dollars an hour just by playing safe according to some simple odds, because most of the players are impulsive and bad. Not enough to make a living, and it was dreadfully dull. But if I wrote a bot to play for me, it could make that few dollars 24/7. So if they didn't prevent it, I'd think there would be lots of people doing it.

Aaron B.
Available for small or large Perl jobs; see my home node.


In reply to Re: Poker Datamine by aaron_baugher
in thread Poker Datamine by bennierounder

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.