Given the list of urls and a search text, the web crawler will crawl through the urls and find the count of matched search word in each url.
mvn spring-boot:run
POST /api/crawl
curl --location --request POST 'http://localhost:8080/api/crawl' \
--header 'Content-Type: application/json' \
--data-raw '{
"urls": [
"https://martinfowler.com/architecture/"
],
"searchText": "architecture"
}'
[
{
"url": "https://martinfowler.com/architecture/",
"count": 81,
"message": "Successfully parsed"
}
]