Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neluckoff/html-image-parser

The program can download all pictures from any site.
https://github.com/neluckoff/html-image-parser

html-parser image-parser java parser parsing

Last synced: 7 days ago
JSON representation

The program can download all pictures from any site.

Awesome Lists containing this project

README

        

# Парс HTML кода страницы
____
**[RU] Данная программа работает по принципу:**

1. Получает с помощью библиотеки jsoup HTML-код страницы;
2. Находит в HTML-коде теги img и получает абсолютные ссылки на изображения из атрибута src;
3. Скачивает изображения в папку images проекта, при этом сохраняя оригинальные названия файлов;
4. Выводит в консоль список c названиями скачанных файлов.

Если будете использовать код, не забудьте про библиотеку Jsoup (https://jsoup.org/).
____
**[ENG] This program works according to the principle:**

1. Receives the HTML-code of the page using the jsoup library;
2. Finds img tags in HTML-code and gets absolute links to images from the src attribute;
3. Downloads images to the images folder of the project, while preserving the original file names;
4. Prints to the console a list with the names of the downloaded files.

If you use code, don't forget about the Jsoup library (https://jsoup.org/).