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
Accessing UK National Lottery Numbers
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 4
- Joined: Sun Jun 24, 2012 10:13 pm
Accessing UK National Lottery Numbers
Last edited by martinwinlow on Mon Jun 25, 2012 8:15 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 328
- Joined: Mon Dec 05, 2011 5:34 pm
- Contact:
Re: Accessing National Lottery Numbers
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
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
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.
Visit http://electronic-apps.info for released App information.
-
- Posts: 4
- Joined: Sun Jun 24, 2012 10:13 pm
Re: Accessing UK National Lottery Numbers
Thanks Dave, original msg edited. MW
-
- Livecode Opensource Backer
- Posts: 328
- Joined: Mon Dec 05, 2011 5:34 pm
- Contact:
Re: Accessing UK National Lottery Numbers
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

Phew! They really don't make it easy to access the actual numbers in their 'Feed' though

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
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.
Visit http://electronic-apps.info for released App information.
-
- Posts: 4
- Joined: Sun Jun 24, 2012 10:13 pm
Re: Accessing UK National Lottery Numbers
Thks Dave, I'll let you know how I get on. MW