Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News #22

Open
parsons-owen opened this issue May 17, 2018 · 8 comments
Open

News #22

parsons-owen opened this issue May 17, 2018 · 8 comments

Comments

@parsons-owen
Copy link

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!

@tempdj
Copy link

tempdj commented Jul 1, 2018

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

@parsons-owen
Copy link
Author

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

@tempdj
Copy link

tempdj commented Jul 1, 2018

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

@parsons-owen
Copy link
Author

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
Copy link
Author

See that doesn't work for me!! Because of the layout of the RSS feeds it can't actually read it cause it does <title>. Only way it would work is if it only had to look through 3 of those not 4 to get to the title.

@tempdj
Copy link

tempdj commented Jul 1, 2018

Yeah no worries. Thanks would appreciate that.

@tempdj
Copy link

tempdj commented Jul 1, 2018

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

@parsons-owen
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants