mirror icon indicating copy to clipboard operation
mirror copied to clipboard

News

Open parsons-owen opened this issue 6 years ago • 8 comments

Hi, so i have been playing with different news feeds and i have realised the included one has 3 elements feed>entry>title

however, most rss feeds use this layout: rss>channel>item>title

at the moment i can only us the verge as a source as it works but i want to use BBC or Sky news (http://feeds.skynews.com/feeds/rss/uk.xml) which uses the 2nd layout. if i could get it to read through one extra line then it would be perfect! but i cant, i've tried a few different things but haven't managed to get it to work. i would really appreciate it if you could show me how? im new to this!

thanks!

parsons-owen avatar May 17 '18 22:05 parsons-owen

Managed to get the BBC feed working using "http://feeds.bbci.co.uk/news/rss.xml"

tempdj avatar Jul 01 '18 21:07 tempdj

How did you manage that!? I've been trying for so long I've been stuck with the verge 😂😂.

parsons-owen avatar Jul 01 '18 21:07 parsons-owen

Hopefully we are are going on about the same thing, but I just inputted that URL under the Java folder down to News.java and in there I found: Private static final String NEWS_RSS_URL = "http://feeds.bbci.co.uk/news/rss.xml"; Changed feed to the above and now I get BBC feeds. Hope this helps. Struggling with the weather bit at the moment

tempdj avatar Jul 01 '18 21:07 tempdj

AHH thank you so much! I'll give it a try. Yeah I saw your other post I'm just about to checkout what I've done and I'll send you it

parsons-owen avatar Jul 01 '18 22:07 parsons-owen

See that doesn't work for me!! Because of the layout of the RSS feeds it can't actually read it cause it does <RSS> <Channel> <Item>

. Only way it would work is if it only had to look through 3 of those not 4 to get to the title.

parsons-owen avatar Jul 01 '18 22:07 parsons-owen

Yeah no worries. Thanks would appreciate that.

tempdj avatar Jul 01 '18 22:07 tempdj

Thats a pain. So what do you use for your feeds at the minute?

tempdj avatar Jul 01 '18 22:07 tempdj

Well currently I use the verge because there layout is something like channel > entry > title. See it only has 3 steps if you will to get to the title

parsons-owen avatar Jul 01 '18 22:07 parsons-owen