TWS-Dataset is a program that slowly generates a dataset of top headlines from english countries.

It’s for a project that I’m working on called ‘The World’s Sentiment’.

I’m only going to give a quick explaination of what TWS is and what it’s doing.

What is The World’s Sentiment?

TWS is a project of mine that I’m working on.

The project’s main goal is to analyze the sentiment of what is going on in the world.

TWS will become a yearly thing that I do every year or month.

When is TWS going to be finished?

The answer is I don’t know. It really depends on how long I run it for. Could be a few days, weeks, or even months. or if I run out of storage space to hold the dataset.

What is TWS doing?

Every day, at 7:30 PM, TWS-dataset will append the top headlines from the english countries to a file, and the sentiment of the headlines will be analyzed and appended to a file.

How do I run TWS?

Either you fork this project and run it yourself, or you simply don’t, because the endpoint is protected by authentication.

If I fork this project, how do I run it?

git clone
cd TWS-dataset
npm install
node .

Don’t forget to add a .env file to the root of the project with the following variables:


To get your API key, go to and create an account.

PASSWORD is the password you use to access the /getTopHeadlines endpoint.


TWS-Dataset_gen is a program that slowly generates a dataset of the sentiment scores of news headlines’ titles

Copyright © 2022 EnZon3

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see


View Github