Package for gathering financial news from various RSS feeds
Project description
FinNews
This is a package to help me with a personal project dealing with sentiment analysis and headline classification. The package has a lot of influence from the newscatcher package. While that package is great for getting general news, I need more financial related news that I wasn't getting.
You can install using pip by downloading directly from Pypi:
$ pip install FinNews
or from this repo:
$ pip install git+https://github.com/scaratozzolo/FinNews
Example usage:
import FinNews as fn
cnbc_feed = fn.CNBC(topics=['*']) # '*' = all possible topics
print(cnbc_feed.get_news())
print(cnbc_feed.possible_topics())
Current RSS feeds and their classes:
- CNBC
fn.CNBC(topics=['finance', 'earnings'], save_feeds=True)
- Seeking Alpha
# SeekingAlpha has support for RSS feeds by ticker, tickers can be passed as a topic and are denoted by $XXX
fn.SeekingAlpha(topics=['financial', '$AAPL'], save_feeds=True)
- Investing.com
fn.Investing(topics=['all news', 'latest news'], save_feeds=True)
- WSJ
fn.WSJ(topics=['markets news', 'us business'], save_feeds=True)
- Yahoo Finance
# Yahoo Finance has support for RSS feeds by ticker, tickers can be passed as a topic and are denoted by $XXX
fn.Yahoo(topics=['top stories', '$DIS'], save_feeds=True)
- Financial Times
# not a lot of feeds
fn.FT(topics=['*'], save_feeds=True)
- Fortune
# not a lot of feeds
fn.Fortune(topics=['*'], save_feeds=True)
Todo:
- CNBC
- Seeking Alpha
- Investing.com
- WSJ
- Yahoo Finance
- Financial Times
- Fortune
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FinNews-0.9.0.tar.gz
(10.8 kB
view hashes)
Built Distribution
FinNews-0.9.0-py3-none-any.whl
(12.6 kB
view hashes)