Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.

In reply to Re^2: Poker Datamine by bennierounder
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-23 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found