news app

Hi there

I want to build an application aggregating news from various websites, these websites are not necessarily feeding RSS,
Any idea where to start? is corona an optimal choice for such project?

thanks for your thoughts [import]uid: 94804 topic_id: 34871 reply_id: 334871[/import]

I’ve created an RSS module (in community code, supports both ATOM and RSS2.0) to deal with that and it has an XML parser. Most news sources are going to provide RSS or some type of XML feed. If you are getting the data in some form that’s not XML or JSON (if they can give you JSON life is great!) then your going to have to parse it yourself.

Corona/Lua’s built in strings features can do a lot, but they are missing some of the more popular string functions like split/join, though you can google “Lua Split” and find dozens of people who have solved this and provide the code snippets.

Corona can do a good job of getting network objects from web services as long as you don’t need to use SOAP. If its REST based or some custom thing that just outputs your content, then you should be able to read it. If you need obscure headers, then there may be some limits.

If your content is web based, Corona has a couple of different ways for showing Web views, though be aware if your app is just a website bundled as a native app, Apple will likely reject it.

Corona can do about 75% of things necessary to become a Newsstand app, so if that’s in your plans, there will be some hurdles that need crossed and I don’t know any one whose tried to solve that last 25%.

[import]uid: 199310 topic_id: 34871 reply_id: 138605[/import]

I’ve created an RSS module (in community code, supports both ATOM and RSS2.0) to deal with that and it has an XML parser. Most news sources are going to provide RSS or some type of XML feed. If you are getting the data in some form that’s not XML or JSON (if they can give you JSON life is great!) then your going to have to parse it yourself.

Corona/Lua’s built in strings features can do a lot, but they are missing some of the more popular string functions like split/join, though you can google “Lua Split” and find dozens of people who have solved this and provide the code snippets.

Corona can do a good job of getting network objects from web services as long as you don’t need to use SOAP. If its REST based or some custom thing that just outputs your content, then you should be able to read it. If you need obscure headers, then there may be some limits.

If your content is web based, Corona has a couple of different ways for showing Web views, though be aware if your app is just a website bundled as a native app, Apple will likely reject it.

Corona can do about 75% of things necessary to become a Newsstand app, so if that’s in your plans, there will be some hurdles that need crossed and I don’t know any one whose tried to solve that last 25%.

[import]uid: 199310 topic_id: 34871 reply_id: 138605[/import]