Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

New Forums: Nexus 6 | Nexus Player | Nexus 9
test: Reply
LinkBack Thread Tools
Old September 12th, 2012, 04:52 AM   #1 (permalink)
New Member
Thread Author (OP)
Join Date: Sep 2012
Posts: 1
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help to get out news/tables from a website


I am making a simple app for a local football team.

I've created the UI, but I am struggling to get further.

What I have planned:
- One site where news will be showed, and maybe just the headline with a "read more" button which is leading you to the actual article on the website.
- One site with a score table which is automatically updating from a website.

What i need help to:
- How can i create this, when the site doesn't have RSS?
- How can i get out just that scoretable from a website, and JUST show this table in the app?

NB: This is my first time trying to make an app.

Thank you!

mongoms is offline  
Reply With Quote
sponsored links
Old September 30th, 2012, 07:50 PM   #2 (permalink)
Junior Member
Join Date: Sep 2011
Location: AZ
Gender: Male
Posts: 71
Device(s): Droid 1, Xoom WIFI, HTC Thunderbolt, Galaxy S3, Kindle Fire
Carrier: Big Red

Thanks: 0
Thanked 6 Times in 6 Posts

The simplest way to do this without an RSS feed would be to "spider" the website and then parse the results. Can I assume you know the URLS of how to fetch each page you want ( the news, and the scores ) ? If not find out

Look at the source of those pages in a text editor and figure out where and how you can split the full HTML into only what you want. Make sure you use some tag that is unique to the content you want. for example, maybe the news section is wrapped in a div tag that looks like <div id='news'>....</div> <div id='whatevers next'>.... Then you'd look for the start of the "<div id='news'>" tag and then go until you find the "<div id='whatevers next'>" tag and back up a little bit.

But really, it depends on the website you are parsing. also if it changes a lot, then you might be in trouble :/
dlhavema is offline  
Reply With Quote

Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -5. The time now is 05:13 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.