Excel web query can it be automated ?

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Postby Captain Sensible » Fri May 04, 2007 2:57 pm

Managed to get it working using

Dim qry As QueryTable
With Sheets("Sheet2")
Set qry = .QueryTables.Add(Connection:="URL;http://localhost/sp/scrape.php?url=" & Sheets("Sheet1").Range("A10").Text, Destination:=.Range("A1"))
qry.Refresh
End With


Hope that help to anyone else who needs it.

Thanks to all that replied
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Postby tkp » Fri May 04, 2007 5:21 pm

Hi Captain - so what you've done is used a php screen scraper on (i'm guessing at) IIS on your machine to grab some data from a website, parse it and then put the results into excel via the excel query.

That's pretty cool. 8)

Do you refine the data once in excel ?

With PHP can you fill in forms so that you can go to a php (or other script) generated page - I've only ever managed to scrape from static websites ?
tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby Captain Sensible » Sat May 05, 2007 4:25 pm

tkp I'm using xampp which instals apache as my server. When i originally looked at coding all the microsoft stuff had to be paid for ,asp, IIS etc so I used php apache and mysql which were all free open source and thousands of code snippets out there.

I don't do much with the data once it's in excel except compare it against the betfair odds. The php does all the parsing and just displays the current price in decimal odds and runner details which can be matched using vlookup.

I've never had any problems scraping php or asp pages etc as once they've been rendered on the other server they're effectively just html. Sometimes requests can be blocked if they don't appear to be coming a browser but that can usually be faked by using headers. Although it's been a long time since I've had to do that and haven't had a page I couldn't scrape using file_get_contents for some years now.
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Previous

Return to Discussion

Who is online

Users browsing this forum: No registered users and 70 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.