/getNEWS

Create a database of news headlines using the https://newsapi.org/ API key

Primary LanguagePythonMIT LicenseMIT

getNEWS

Create a database of news headlines using the https://newsapi.org/ API key

Version

Release date

License

Programming language

OS

Requirements

pip install requests textblob

or

pip install -r requirements.txt
import requests
import sqlite3
from textblob import TextBlob

How to run

API_KEY = 'Your API key here'
BASE_URL = 'https://newsapi.org/v2/top-headlines'

get_news(API_KEY)