This project contains a simple example of how to use the JSoup library to scrape data from a web page.
- SimpleDemo: A simple example of how to use JSoup to scrape data using the demo.html in the project root.
- CssSelectors: A simple example of how to use JSoup to scrape data, using CSS selectors.
- WikiExample: A simple example of how to use JSoup to scrape data from a real web page (Wikipedia), to get a list of all images on the page.
- NextSiblingExample: A simple example of how to get the next sibling of an element (as it is necessary in the daily exercise scraping from wikipeadia)
- DBA: Show how to get XPath from Chrome/Firefox and how to use it in JSoup. Show Pagination as well.
- Concurrent: Show how to use JSoup in a concurrent way (using the ExecutorService) and the ResultDTO class to collect the results.
- WeatherMap: Use WeatherMap JSON API to get weather data for a city (using the city name) and show how to use the JsonParser to parse the result to DTOs.