This application would crawl into CNN and Twitter to find the last 25 posts and news of J. Trudeau and displays them. the web design of this app would be refreshed every 5minutes in order to fetch the most recent contents.
The endpoints that the index.html file currently uses.
- /content/twitter
- /content/cnn
The coolest feature of this app is that it can analyze the tonality of the text using the GET API of IBM ToneAnalyzer.
This feature can help us immediately understand the semantic of the content we are about to read, and in periods like the Coronavirus outbreak, this feature can help us to go straight to news and tweets which has brought "Fear" to our governors.
This analyzer would detect the tonality of the news based on their first three sentences, and also tweets based on their first three sentences (if they are more than 3 sentences). In the case of not detecting the exact tonality, the "MixedFeeling" would appear.
The search query of CNN news and username of twitter can be manual.
- localhost:8080/content/{query}/cnn
- localhost:8080/content/{username}/twitter
Also, the number of posts that are being fetched can be manual to and be sent as a @PathValue.
- localhost:8080/content/cnn/{maxPosition}
- localhost:8080/content/twitter/{maxPosition}
- localhost:8080/content/{query}/cnn/{maxPosition}
- localhost:8080/content/{username}/twitter/{maxPosition}
- Spring Boot
- version java
- IMB Tone Analyzer
To run this project you need to import all maven dependecies.
its better to first clean the maven catch mvn clean
and then install them all mvn idea:idea
and lastly, package it mvn package
:).