https://github.com/christian-draeger/news-cli
playing around and teaching basic usage of external apis
https://github.com/christian-draeger/news-cli
Last synced: 6 months ago
JSON representation
playing around and teaching basic usage of external apis
- Host: GitHub
- URL: https://github.com/christian-draeger/news-cli
- Owner: christian-draeger
- Created: 2022-03-10T11:54:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-17T08:16:19.000Z (over 3 years ago)
- Last Synced: 2025-03-23T21:03:40.193Z (7 months ago)
- Language: Kotlin
- Size: 162 KB
- Stars: 0
- Watchers: 1
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example project
An example project for the backend class to play around and teaching basic usage of external APIs =)
it will creatze an html file in the project root depending in given search and filter terms## How to build:
```shell
./gradlew build
```> This will produce a 'fat-jar' in the build folder under `build/libs`
## How to run
(assuming you have done a build)```shell
java -jar ./build/libs/news-cli-all.jar
```## How to use
You can search for news either by using the [news Api](https://newsapi.org) or scraping data from rwanda news page [www.newtimes.co.rw](https://www.newtimes.co.rw) or running in a mixed mode and using both sources to search for results.
During runtime you can pass a general search term, filter titles for a keyword and decide from which source results should be fetched.results will be stored in an `index.html` file to the current directory and can be opend in a browser of your choice.