in reply to Re^2: Poker Datamine
in thread Poker Datamine

Well, as I said, it depends on how you're getting the data. If you're getting it in the browser with Javascript, then you might be able to save it to a local SQLite database, or connect to a server with Ajax and dump it into a database there. But a browser is limited for security reasons in what it can do on the local system and what servers it can contact other than the one already in the window. Perhaps there are ways around those limits; I don't know.

On the other hand, if you're getting the data by sniffing your network traffic or sticking some kind of proxy between client and server, then that program could save it to a database. If the poker client is standalone, not browser-based, that seems like the most likely method.

I don't have any resources to suggest, but I think you may want to try terms other than "scraping." Scraping normally means pulling web pages and mining data out of them one after another. You're not talking about web pages here; you might not be talking about the web at all. To scrape something, as I understand the term, you run a program that stands in for the client and grab what the server returns. That would be the ultimate way to run a bot -- have it connect in place of the official software -- but that's very unlikely to be possible. You need a way to run the poker software and get the chat stream that goes to it. Try doing your searches and adding "traffic sniff(ing|er)" and "proxy" to see if you find anything.

I don't know how the sites that are selling it are doing it, or what they're calling "scraping." Could be any of the methods I mentioned, or something I haven't thought of. Maybe the sites make the table chat available via RSS, for all I know. I still doubt that a database of action more than a few hours old would be useful, but I could be wrong.

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