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.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.