V
V
Vadim2016-03-02 14:48:47
Java
Vadim, 2016-03-02 14:48:47

How to parse a website for an Android app?

Hello!
I want to write an application for the Android OS based on the site (of course, with all the resulting functionality of the site). I have already decided on the library: JSOUP. The question, in fact, is the following: where can one find high-quality comprehensive materials on the topic of parsing html pages in Java? Naturally, including all the functionality, for example, upload a photo, request a call, etc., etc.
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
littleguga, 2016-03-02
@Whiskas333

1. If your site, then do not do this. Make a normal API that will give json.
2. If this is not your site, then as an option, look for the API of that site.
3. If this is not your site and there is no API, then it is better to make your own server with the API separately (the server will parse the site and give it to the application in JSON). Why is that? Parsing on the client (especially mobile) will consume a lot of resources (and noticeably), it reduces battery power, slows down and many other troubles.

K
Konstantin Dovnar, 2016-03-02
@SolidlSnake

However, if the site is yours, then it is easier and, more importantly, it would be more correct to modify the API for working with mobile devices and write just an application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question