Accessing UK National Lottery Numbers

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
martinwinlow
Posts: 4
Joined: Sun Jun 24, 2012 10:13 pm

Accessing UK National Lottery Numbers

Post by martinwinlow » Sun Jun 24, 2012 11:54 pm

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
Last edited by martinwinlow on Mon Jun 25, 2012 8:15 am, edited 1 time in total.

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: Accessing National Lottery Numbers

Post by dave_probertGA6e24 » Mon Jun 25, 2012 6:59 am

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
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

martinwinlow
Posts: 4
Joined: Sun Jun 24, 2012 10:13 pm

Re: Accessing UK National Lottery Numbers

Post by martinwinlow » Mon Jun 25, 2012 8:15 am

Thanks Dave, original msg edited. MW

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: Accessing UK National Lottery Numbers

Post by dave_probertGA6e24 » Mon Jun 25, 2012 11:17 am

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
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

martinwinlow
Posts: 4
Joined: Sun Jun 24, 2012 10:13 pm

Re: Accessing UK National Lottery Numbers

Post by martinwinlow » Wed Jun 27, 2012 5:52 pm

Thks Dave, I'll let you know how I get on. MW

Post Reply