Page 1 of 1

Accessing UK National Lottery Numbers

Posted: Sun Jun 24, 2012 11:54 pm
by martinwinlow
Hi,

Can anyone suggest an easy way to import the latest UK lotto (National Lottery) results into an app? Tried the RSS feed (my account 'doesn't have permission to post a link' but google 'uk national lottery rss feed' and you will find the relevant web page at the top of the results, then goto 'Results') and it is way too complicated for my newbie skills...

MW

Re: Accessing National Lottery Numbers

Posted: Mon Jun 25, 2012 6:59 am
by dave_probertGA6e24
Hi Martin,

I think you would need to be a lot more specific regarding which "Lotto" you are referring to - i.e. which country, etc. You would also get a better response if you provided some details on the website that gives the RSS feed, etc information.


Cheers,
Dave

Re: Accessing UK National Lottery Numbers

Posted: Mon Jun 25, 2012 8:15 am
by martinwinlow
Thanks Dave, original msg edited. MW

Re: Accessing UK National Lottery Numbers

Posted: Mon Jun 25, 2012 11:17 am
by dave_probertGA6e24
That's better mate :)

Phew! They really don't make it easy to access the actual numbers in their 'Feed' though :( It's mainly a feed of links to the results pages - and on those pages the numbers are buried within lots of other junk. I'm sure that a good parser could pull out the numbers once the specific tag structure is known, but it's not a real easy task.

If you are savvy with xml or html and the LC XML functions then you could mine down to the results from grabbing the contents of each page from the feeds link. But if you are not too happy with xml then it's going to involve a bit of learning - sorry to say.

Here are some lessons that might help:
http://lessons.runrev.com/s/lessons/m/4 ... -rss-feeds
http://lessons.runrev.com/s/lessons/m/4 ... ng-to-file
http://lessons.runrev.com/s/lessons/m/4 ... n-xml-file

They don't provide the whole solution, but give some starting points.

Hope that helps,
Dave

Re: Accessing UK National Lottery Numbers

Posted: Wed Jun 27, 2012 5:52 pm
by martinwinlow
Thks Dave, I'll let you know how I get on. MW