Skip to content

This application would crawl into CNN and Twitter in order to find most recent posts of J. Trudeau and displays them.

Notifications You must be signed in to change notification settings

saraNgolestani/trudeau_posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

trudeau_posts

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.

Base endpoints

The endpoints that the index.html file currently uses.

  • /content/twitter
  • /content/cnn

Features:

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}

Techs and Frameworks

  • Spring Boot
  • version java
  • IMB Tone Analyzer

Deployment

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 :).

About

This application would crawl into CNN and Twitter in order to find most recent posts of J. Trudeau and displays them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published