03-08-07, 01:17 PM
|
#1
|
Nolite te bastardes carborundorum.
|
Pinnacle XML line feed
I've recently starting using Pinnacle's XML line feed again (to Pinny's specifications) but am extremely disappointed with the speed of service -- especially during peak times when it becomes essentially unusable.
Is anyone having any luck with this? I think I may need to go back to scraping their HTML.
|
SBR Founder
Join Date:
8/28/2005
|
03-08-07, 01:20 PM
|
#2
|
|
|
Scrape their html and your ip wll be blocked if you put some auto reloader in it.
XML is ok but again your IP will be blocked if you grab the feed more than every 2 minutes or so.
I love you Ganch but your not playing smart today at all.
|
SBR Founder
Join Date:
7/20/2005
|
03-08-07, 01:52 PM
|
#3
|
|
|
what is the differance between their XML feed and that "Dynamic Line Dsiplay" ? I use DLD alot and it's pretty sweet.. what is XML like compared to this..?
THANKS
|
|
|
03-08-07, 01:58 PM
|
#4
|
Nolite te bastardes carborundorum.
|
Quote:
Originally Posted by jjgold
Scrape their html and your ip wll be blocked if you put some auto reloader in it.
|
If you're going to scrape Pinnacle's HTML you just need to be careful ...
Quote:
Originally Posted by jjgold
XML is ok but again your IP will be blocked if you grab the feed more than every 2 minutes or so.
|
They ask for 60 seconds between requests. That's pretty easy to do when each request takes 5 minutes to fulfill.
Quote:
Originally Posted by jjgold
I love you Ganch but your not playing smart today at all.
|
You can tell me about it when we go out. At this point we'd even meet you in Newark.
|
SBR Founder
Join Date:
8/28/2005
|
03-08-07, 02:04 PM
|
#5
|
Nolite te bastardes carborundorum.
|
Quote:
Originally Posted by ShamsWoof10
what is the differance between their XML feed and that "Dynamic Line Dsiplay" ? I use DLD alot and it's pretty sweet.. what is XML like compared to this..?
|
You'd use the XML line feed if you wanted raw data for analytical purposes. Attached is a sample, pared-down Pinnacle XML line file (change the extension from .txt to .xml in order to view in-browser).
|
SBR Founder
Join Date:
8/28/2005
|
03-08-07, 02:54 PM
|
#6
|
|
|
my browser couldn't get it to come up... can you cut and paste on your post a sample..?
Thanks
|
|
|
03-08-07, 03:17 PM
|
#7
|
Nolite te bastardes carborundorum.
|
Quote:
Originally Posted by ShamsWoof10
my browser couldn't get it to come up... can you cut and paste on your post a sample..?
Thanks
|
You can also open it up with notepad (easier if you put back the .txt extension).
|
SBR Founder
Join Date:
8/28/2005
|
03-09-07, 07:28 PM
|
#8
|
|
|
Quote:
Originally Posted by Ganchrow
I think I may need to go back to scraping their HTML.
|
what is scraping html?
|
|
|
03-09-07, 08:13 PM
|
#10
|
|
|
What's the advantage to scraping and what's the advantage to xml feeds..? It looks like a buch of bionary code... Forgive me for being unaware but I can't make heads or tails of it... Just looks like bionary code..
|
|
|
03-09-07, 08:18 PM
|
#11
|
|
|
If you use spider programs, the xml feed is nice.
|
SBR Founder
Join Date:
8/10/2005
|
03-09-07, 08:37 PM
|
#12
|
|
|
Spider programs..? oh sh*t.. what the hell are those..? sounds interesting...
|
|
|
03-10-07, 12:18 PM
|
#13
|
Nolite te bastardes carborundorum.
|
Quote:
Originally Posted by ShamsWoof10
What's the advantage to scraping and what's the advantage to xml feeds..? It looks like a buch of bionary code... Forgive me for being unaware but I can't make heads or tails of it... Just looks like bionary code..
|
Well first off, binary code will look something this:
Quote:
|
00000000 00010001 00000100 11111111 00010011 00000111 00000100 00010010 00000100 11111111 00001111 00000100 00001110 00001111 00001011 00000100 11111111 00010001 00000100 00000000 00001011 00001011 00011000 11111111 00010011 00000111 00000000 00010011 11111111 00000101 00010100 00000010 00001010 00001000 00001101 00000110 11111111 00010010 00010011 00010100 00001111 00001000 00000011 11111111 11111111
|
While XML may not always be transparently human readable it's still much higher level and easier to visually parse than binary (not that a properly motivated person couldn't read binary with a modest effort ...)
The advantage to an XML feed over scraping is that it's provided by design and follows a guaranteed format. HTML pages may will frequently have their formatting modified and will so without warning or description . Furthermore, many companies look askance and those scraping their pages. XML should be the default choice.
As a general rule, there really is no advantage to scraping over XML. However, there may well be case-specific reasons why XML could be preferable.
For example: - Pinnacle's XML feed does not provide access to the lines reflected in its drop-down box prices. If you wanted to automatically read this data you couldn't do so using their standard XML and instead would need to scrape the HTML.
- A sportsbook may not devote the same quality of technology to its XML provision server as it might to its HTML provision server (or servers). The reason for this is obvious. It's more profitable to invest resources to a website used by nearly all of its customers, than to a feed used by a relatively small number. One effect of this could be what I mentioned in the first post of this thread; namely that accessing the feed could become extremely slow process. Another effect could be an unreliable XML feed that often crashed.
- A company can effectively exert a lot more control over its XML feed than over its HTML.. The reason is b/c if a company sees you accessing its feed, it knows exactly what you're doing and can hence forbid you from accessing it too frequently. If you're scanning a web page, however, a book can't know for certain what you're doing and will typically allow you more latitude in terms of query frequency.
- Data providers that provide HTML data, sometimes charge money for dedicated XML feeds.
Anyway, this is by no means a complete list, but is just a few thoughts off the top of my head. These reasons (which may not even exist in any particular circumstance). may or may not outweigh the pronounced structural advantages of XML. Use XML unless you have a good reason not to.
|
SBR Founder
Join Date:
8/28/2005
|
05-18-09, 12:23 AM
|
#14
|
|
|
I can't get it to work either.
|
|
|
05-18-09, 12:51 AM
|
#15
|
SBR Problem Poster 2007-08
|
betplom nicky bumps!!!!!11111111111
|
SBR Founder
Join Date:
8/10/2005
|
05-25-09, 10:54 PM
|
#16
|
|
|
Pinnacle HTML Scraping
Quote:
Originally Posted by Ganchrow
If you're going to scrape Pinnacle's HTML you just need to be careful ...
|
I've been writing a program that gets odds from Pinnacle by scraping their HTML, but earlier today my IP was banned by them. When you refer to being careful, what do you mean, i.e. what could I do differently that would prevent me from getting banned in the future?
|
|
|
05-25-09, 11:34 PM
|
#17
|
|
|
Terry you can only grab every 2 minutes if not they ban your IP
|
SBR Founder
Join Date:
7/20/2005
|
11-12-09, 02:52 PM
|
#18
|
|
|
Quote:
Originally Posted by Ganchrow
I've recently starting using Pinnacle's XML line feed again (to Pinny's specifications) but am extremely disappointed with the speed of service -- especially during peak times when it becomes essentially unusable.
Is anyone having any luck with this? I think I may need to go back to scraping their HTML.
|
Ganch-
tried to PM you to see if you wanted to exchange any feeds, but apparently your Inbox is full and the system wont deliver anymore PMs to you until you clear some space.
i have ~20 xml feeds for various books. i'd be willing to do a 1:1 exchange for feeds i dont have if there is any on my list that interests anybody reading this. anybody pls feel free to PM me if you are interested:
Feeds I have:
CentreBet
Gamebookers
Island Sports
NordicBet
Partybets
Sports Interaction
Stan James
WSEX
Bookmaker
Sportbet
Pinnacle
Linesmaker
Legends
Gamblers Palace
Betfred
BetJamaica
BlueSquare
BetClick
William Hill
BetAtHome
BetGun
|
|
|
12-15-09, 05:00 PM
|
#19
|
|
|
Does anyone know what Pinny's limitations on screen scraping their site are? I.E. If I do it once every 3 minutes I should be ok?
|
|
|
12-15-09, 05:15 PM
|
#20
|
|
|
Why would you scrape when they have the XML feed?
|
|
|
12-15-09, 05:30 PM
|
#21
|
|
|
Approx 2-3 minutes
Why scrape if you can just use sbrodds or another line service?
|
SBR Founder
Join Date:
7/20/2005
|
12-15-09, 05:33 PM
|
#22
|
|
|
Umm. Some people want to populate line history databases in real time, jj.
|
|
|
12-15-09, 05:56 PM
|
#23
|
|
|
Quote:
Originally Posted by jjgold
Approx 2-3 minutes
Why scrape if you can just use sbrodds or another line service?
|
Correct me if I'm wrong, but I'm assuming sbrodds doesn't give both odds and line changes in real time?
We want to do our own analysis of how lines are changing from the time the line is posted to figure out the most optimal time to make offers and accept offers on a betting exchange and continuously optimize the prices we're getting.
|
|
|
12-15-09, 05:59 PM
|
#24
|
|
|
Quote:
Originally Posted by MonkeyF0cker
Why would you scrape when they have the XML feed?
|
I figured it would be faster since I didn't need the data for all sports and I didn't want to read in the whole XML feed. It's also easier to screen scrape than parse XML based on some of the tools we're using (I know that normally it's easier to parse XML).
|
|
|
12-15-09, 06:24 PM
|
#25
|
|
|
Even if parsing the XML is less efficient with whatever language you are using (although I'm unaware of one where this is true), the process will still be more efficient as you'll likely need multiple scrapes for even the same sport (Full game, 1H, 2H, etc.). The full XML file is only processed once anyway. From there, you input a timestamp in your feed request and you only get line changes.
If you're set on scraping, however, I would simply call them and ask. Otherwise, you run the risk of having your IP blocked.
|
|
|
12-15-09, 07:17 PM
|
#26
|
|
|
your IP will get banned scrapping lines from Pinny
Even if you use xml feed you only better pull it every 2-3 minutes or your done.
|
SBR Founder
Join Date:
7/20/2005
|
12-15-09, 07:47 PM
|
#27
|
|
|
Their own instructions state that once per minute is acceptable.
|
|
|
12-15-09, 08:01 PM
|
#28
|
|
|
JJ, stick to videos please. As MrX said, the XML feed can be pulled every 60 seconds without recourse.
|
|
|
05-18-10, 05:25 PM
|
#29
|
|
|
Sorry to bring up and old topic but I was messing around with the XML feed and I think I set it to scrape too frequently and got blocked from Pinnacle. Anyone have any ideas on how to get unblocked? Also, I'm having trouble with the XML feed. I know the instructions are there I just can't seem to get it into a functional form. Any help?
|
|
|
05-18-10, 05:26 PM
|
#30
|
|
|
email them and ask them to unblock your ip. tell them you won't hit it more than once a minute again.
|
|
|
08-09-10, 05:37 AM
|
#31
|
|
|
Anyone used the "sportType" parameter when calling the XML-feed? I'm only interested in MMA, but I can't very well set the parameter value to "Mixed Martial Arts" (which is the sport type name), as it includes spaces.
Any suggestions? Customer service won't help out with this.
|
|
|
09-23-10, 03:51 PM
|
#32
|
|
|
Hi Everyone:
who can understand and parse pinny xml?
i can't understand what means lastGame and lastContest in xml document? what is it? for what is it? what is last?
how can i get only soccer data ? hopw can i get only one game data by gamenumber? is it possible?
what is contestantnum in participand node? what is rotnum in participant node?
what is period_status and period_updae? where i can read full manual for this xml file?
|
|
|
11-30-10, 07:31 AM
|
#33
|
|
|
Quote:
Originally Posted by Aperjan
Hi Everyone:
who can understand and parse pinny xml?
i can't understand what means lastGame and lastContest in xml document? what is it? for what is it? what is last?
how can i get only soccer data ? hopw can i get only one game data by gamenumber? is it possible?
what is contestantnum in participand node? what is rotnum in participant node?
what is period_status and period_updae? where i can read full manual for this xml file?
|
Any help? I'm also interested in the meanings for all of the elements
|
|
|
11-30-10, 09:29 AM
|
#34
|
|
|
Pinny has indicated they might put buy/sell lines in the xml feed in the future. This might be worth a few folks sending them emails asking when this updated feature will be available.
|
600pts
SBR POKER TOURNEY1st Place 1/13/2012
10,007
SBR POKER TOP 100 29th Place 11/1/2011
600pts
SBR POKER TOURNEY1st Place 2/7/2012
1500pts
SBR POKER CHAMPIONSHIP 11th Place 2/26/2011
2,777pts
SBR POKER RYDER CUP
2nd Place
2011
|
11-30-10, 11:55 AM
|
#35
|
|
|
Quote:
Originally Posted by creeky
Any help? I'm also interested in the meanings for all of the elements
|
Pinnacle's feed is what we call "incremental" which means that when you request it you have the option of only receiving events/lines that have updated since your last call.
I suggest sticking with the parameter last parameter as its a little simpler to use. Basically when you receive the feed for the first time they give you a timestamp \\pinnacle_line_feed\PinnacleFeedTime you save this and send it as the value for the last parameter next time you request the feed. Doing so will cause only the lines and events that have changed since the last time you requested the feed to show up.
To request by only one league use the sportType parameter. For example, to request only soccer
http://xml.pinnaclesports.com/pinnac...ortType=Soccer
|
|
|
|
|