N
N
nikkapral2020-12-12 18:06:44
Java
nikkapral, 2020-12-12 18:06:44

How to implement Wikipedia parsing in Java?

It is necessary to write a program that reads a search query from the console and displays the result of a Wikipedia search. The task is divided into 4 stages:

1. Read the request
2. Make a request to the server 3. Parse the
response
4. Display the result . I encounter parsing in Java for the first time

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2020-12-12
@zagayevskiy

Wikipedia has an api . You can take data from there.

O
Orkhan, 2020-12-12
Hasanly @azerphoenix

Good afternoon!
I think that there are various options for implementing your idea:
1) write a parser using jsoup.
2) use the API - https://www.mediawiki.org/wiki/API:Main_page/ru
3) download the finished database, and then work with it -
https://dumps.wikimedia.org/backup-index. html
https://en.wikipedia.org/wiki/Wikipedia:Database_d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question