A
A
Antonzm2016-04-20 20:25:13
Java
Antonzm, 2016-04-20 20:25:13

How to implement Parsing the page, and sending a request, in java?

The essence of the question is this, there is a certain site, I make a request (for example, search by movie title), I get an answer, parse it and take it from there. But I don’t know how to do it at all, because away from the web.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey Myvrenik, 2016-04-20
@Antonzm

https://jsoup.org/
You still have to know HTML (at least understand it).

C
Chvalov, 2016-04-20
@Chvalov

Antonzm : Look at the gson library , in my opinion it will be more convenient, and there are many examples on gitgub, as well as video tutorials.
Yes, and faster in tests , though the current is on small json files)
And also about the choice of a library for working with http on Habré there is an article , though for Android, but I think that this is not a problem.
P.S. What lessons on Android and Java in working with gson are no different.

A
Alexander Korobov, 2016-04-21
@superbadlam

I had to do something like this.
I managed with the standard HTTPRequest + HTMLCLeaner.

E
Evhen, 2016-04-21
@EugeneP2

It seems to me the easiest is Selenium WebDriver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question