It's feasable, but in order to implement it you need to get familiar with:

* understanding HTTP requests/cookies
* understanding HTML - to be able to extract the information you need
* regular expressions would be useful to help you extract the information
you need.

Alternatively, search for a HTML/XML DOM parser for java (SOX maybe?) that
could be instructed to parse the pages you get from the server. Most likely
something already exists and would save you from learning regular
expressions (note - learning regular expressions is a skill that will help
you all throughout your professional career!)

Remember, the server will always think it's talking to a browser and will
serve you HTML. You need to parse the response page, extract things you
need (image links, table data, etc) and request the data from the server
(for images) and display the data in an android-friendly way.

Implementing your app is doable and not very complicated once you
understand the page sturcture, but your app will brake if/when Peter makes
changes to the web interface (web scraping is never a long-term solution).

Good luck. I think we'd like to see an android app that integrates NFSEN
into android.

On Sat, Nov 28, 2015 at 1:31 PM, Michele Lasaponara <[email protected]>
wrote:

> What in your opinion it is a feasible or would have trouble accessing the
> server where the data is stored? The initial idea was to adapt a plugin
> nfsen for Android, but I saw that it's a job too long and I was abandoning
> the idea of continuing.
>
> 2015-11-27 13:55 GMT+01:00 Adrian Popa <[email protected]>:
>
>> Either you create a webend plugin that can access the data and export it
>> via your custom API (e.g. json/xml), or you scrape the web interface -
>> which hasn't changed much in the past 5+ years. Or you could analyze the
>> calls the web page makes in the backend (by using Firebug or Developer
>> Tools) and make the same calls and filter out the data in the Android
>> client.
>>
>> On Fri, Nov 27, 2015 at 2:48 PM, Michele Lasaponara <[email protected]
>> > wrote:
>>
>>> Hi, I would like to know if there is a way to extract data from a plugin
>>> nfsen and display them on an Android application. I'm trying to do a thesis
>>> at the university on this topic and I would like to know if there was a
>>> means by which to start (Ex. frameworks, ...). Regards.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Nfsen-discuss mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
>>>
>>>
>>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Nfsen-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
>
>
------------------------------------------------------------------------------
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to