Skip to content
A cURL-able endpoint that grabs the latest headlines from Reuters and displays them in a table, in which they are sorted by category.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
getNews.js
package.json
yarn.lock

README.md

getNews

Cli endpoint to quickly grab the latest headlines from Reuters.com

getNews table in terminal

Usage

curl https://wt-e63b63f6cf3cc11e64f3e24f6f56b98a-0.sandbox.auth0-extend.com/getNews

For a more concise syntax, set the webtask url to a variable, like so (Note: This variable won't persist after the shell is closed):

news="https://wt-e63b63f6cf3cc11e64f3e24f6f56b98a-0.sandbox.auth0-extend.com/getNews"

You can now call the endpoint like this:

curl $news

More info

getNews uses the x-ray module to scrape headlines from Reuters.com, and uses cli-table3 to display these headlines in a table format.

You can’t perform that action at this time.