Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/neluckoff/html-image-parser
- Owner: neluckoff
- Created: 2021-11-08T11:29:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-08T11:38:35.000Z (about 3 years ago)
- Last Synced: 2024-11-27T20:37:07.017Z (2 months ago)
- Topics: html-parser, image-parser, java, parser, parsing
- Language: Java
- Homepage:
- Size: 379 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/).