Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-13-2007, 04:23 AM   #1 (permalink)
ncooper1974
Recruit
 
Join Date: Aug 2007
Posts: 5
ncooper1974 is on a distinguished road
Using VB.NET to screen scrape betfair

Hi

1st time poster here, so hopefully i'm in the right place. I've tried a few searches of this site to see if the info already existed but can't seem to fine what i'm looking for - hence this post. Anyways, I'm fairly new to programming although I do have some programming experience as i've used varios automated test tools (most recently WinRunner).

I'd like to write a bot to screen scrape exchange poker on betfair, and someone suggested that i use asp. As I only have XP Home (ASP only on XP PRo apparently) i've gone for ASP.NET, as cos I have some knowledge of VBScript I thought I'd use that route.
Before I actually get started, can anyone think of a reason why I shouldn't be using this? or can they recommend anything better (possibly easier to code)? It looks like the main stumbling block is that I need to scrape an applet rather than just a web page displaying html so wondering which tools I can use and how well they interface VB.NET.

Like I say, I haven't started yet, so to save me hours of going down this route to then find out its not possible, just wondering if anyone has done anything similar and can share their experience with me
Thanks
Nick
ncooper1974 is offline   Reply With Quote
Old 08-13-2007, 05:32 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 651
DJMaze is on a distinguished road
Quote:
Originally Posted by ncooper1974 View Post
write a bot to screen scrape exchange poker on betfair
And for what benefit?
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 08-13-2007, 05:40 AM   #3 (permalink)
ncooper1974
Recruit
 
Join Date: Aug 2007
Posts: 5
ncooper1974 is on a distinguished road
ultimately, scrape the applet, parse the data and look at the odds.
then place a bet depending on what the odds are - dont really care what the hand shows its the decimal odds i'm interested in.

Is asp.net the way to go, or can you suggest another option?
ncooper1974 is offline   Reply With Quote
Old 08-13-2007, 06:58 AM   #4 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 651
DJMaze is on a distinguished road
I don't think you can in any language.
If the people that created the applet are smart enough, then the cards are shuffled serversided and then there's no change to cheat.
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 08-13-2007, 07:14 AM   #5 (permalink)
ncooper1974
Recruit
 
Join Date: Aug 2007
Posts: 5
ncooper1974 is on a distinguished road
I dont want to cheat - that not my intention. and i dont care if the cards are shuffled, cut, shuffled again or whatever - all i want to do is scrape an applet. Are you telling me that is not possible in any language?
ncooper1974 is offline   Reply With Quote
Old 08-13-2007, 08:14 AM   #6 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
computers are really good at taking font descriptions and turning them into to pictures. Unfortunately they're terrible at turning pictures into text. That's pretty much what scraping an applet would entail.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 08-13-2007, 11:56 AM   #7 (permalink)
ncooper1974
Recruit
 
Join Date: Aug 2007
Posts: 5
ncooper1974 is on a distinguished road
no, not quite. i'm not trying to decode a pair of aces into text.
next to each hand there will be its odds, in decimal format (i.e. 1.10, or 3.5) - thats all i'm after
ncooper1974 is offline   Reply With Quote
Old 08-13-2007, 12:47 PM   #8 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
my point is that the text you see on the screen at that point is just pixels i.e. a picture of text. It's not like html which is marked up textual data. The applet is just a block of pixels. The fact that you as a person can see words in the patterns of those pixels doesn't help your program see them.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 08-13-2007, 01:30 PM   #9 (permalink)
ncooper1974
Recruit
 
Join Date: Aug 2007
Posts: 5
ncooper1974 is on a distinguished road
Oh - i see. I was beginning to think you missed my point, but its actually me who missed you point.
So you're saying, as it seems DJMaze also pointed out, that there is no way that i can scrape this 'text' if its in an applet?
ncooper1974 is offline   Reply With Quote
Old 08-13-2007, 01:50 PM   #10 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,140
Belisarius is on a distinguished road
Well, what you'd want to look into is how people beat CAPTCHA images. From there you could probably figure out how to screen-scrap an applet.

I've done a lot of work with Java, but not much at all with Applets, so I don't know if it'll work, but you might be able to decompile (there are pretty good tools to do this) and reverse engineer the applet, and hook into the network with a custom app, and get a hold of the data and do your calculations that way. You wouldn't be able to cheat, as most of the important bits would be on the server, but you should be able to get a hold of stats and number-crunch automatically.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GUI Screen Scraping - How ? harry569 Platform/API C++ 8 04-17-2008 01:57 PM
New Article: Mimicking VB6 Control Arrays in VB.NET sde Code Newbie News 2 08-07-2007 11:08 PM
Making web pages independent of the screen resolution?? j.gohel HTML, XML, Javascript, AJAX 4 04-21-2006 08:24 AM
console app full screen HELP! Manan Windows 2 09-25-2005 07:48 PM
Screen Resoloution FreeBSD Odoggy5 Linux / BSD / OS X 10 04-20-2005 08:41 PM


All times are GMT -8. The time now is 08:45 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting