Sentiment Analysis of Financial News with Python

  Рет қаралды 3,309

PythonInvest

PythonInvest

Күн бұрын

Use Google Colab to extract the financial news using the NewsAPI, and to get the sentiment scores on the title and description using the NLTK's Vader library.
* 00:00:01 Intro and the motivation
* 00:01:27 Imports and initialisation
* 00:02:27 Obtaining NewsAPI Key
* 00:02:55 Getting news articles with NewsAPI
* 00:05:18 Sentiment intensity analysis using NTLK's Vader library
* 00:07:55 Tesla stock jump on Apr-9th 2021 and related news coverage analysis
* 00:08:50 A function that does a comprehensive analysis of relevant articles for a search query provided
* 00:10:15 Tesla stock jump analysis with the function from above
You can also read the full article "Sentiment Analysis of Financial News" on the website: pythoninvest.com/long-read/se...
The Colab link on Github: github.com/realmistic/PythonI...
If you like this content, please consider to donate www.buymeacoffee.com/pythonin...

Пікірлер: 7
@mahboobalam3807
@mahboobalam3807 Жыл бұрын
Thanks very informative
@stacykaranja2966
@stacykaranja2966 Жыл бұрын
Ver helpful...thank you
@zibdalogique8650
@zibdalogique8650 2 жыл бұрын
Hello - thanks for sharing, would you please share the python notebook
@pythoninvest2480
@pythoninvest2480 2 жыл бұрын
Sure, I've just added it to the description: github.com/realmistic/PythonInvest-basic-fin-analysis/blob/master/yt_videos_colabs/PythonInvest_com_2_2_EveryDay_Sentiment_Analysis_of_Financial_News_.ipynb
@scottlery5421
@scottlery5421 9 ай бұрын
what am I getting the error message:" list index out of range" on the line that reads: sent_list = list(date_sentiments.values())[0]
@pythoninvest2480
@pythoninvest2480 8 ай бұрын
You need to check that the generated list from an array is not empty. News API might not returning any records for you
@scottlery5421
@scottlery5421 8 ай бұрын
Ok, that error is now gone. Now I'm getting an error on this line: return_articles = get_articles_sentiments(keywrd = 'Tesla stock',startd = '17-Aug-2023',sources_list = None, show_all_articles = True) " KeyError: 'title'"
FREE Finance APIs with Python
11:18
PythonInvest
Рет қаралды 1,2 М.
Summarize News Articles with Machine Learning in Python
25:47
NeuralNine
Рет қаралды 47 М.
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 20 МЛН
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 38 МЛН
Designing scalable Compose APIs
19:53
Android Developers
Рет қаралды 10 М.
Lauv - Never Not (Lyric Video)
3:28
Koala Kontrol
Рет қаралды 43 МЛН
Nico & Vinz - Am I Wrong [Official Music Video]
5:05
Nico & Vinz
Рет қаралды 633 МЛН
Stock Market Sentiment Analysis Using Python & Machine Learning
42:45
Computer Science
Рет қаралды 70 М.
Practical Portfolio Optimization with Python
18:31
PythonInvest
Рет қаралды 6 М.
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 20 МЛН