Skip to main content

Package for gathering financial news from various RSS feeds

Project description

FinNews

PyPI version

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=['finance', 'earnings'])
print(cnbc_feed.get_news())
print(cnbc_feed.possible_topics())

# Some feeds have support for feeds by ticker, tickers can be passed as a topic and are denoted by $XXX. These feeds will have 'ticker' as a possible topic.
fn.SeekingAlpha(topics=['financial', '$AAPL'], save_feeds=True)

# You can also pass in '*' to select all possible topic feeds.
fn.WSJ(topics=['*'], save_feeds=True)

# Selecting all topics will not add specific ticker feeds. You will have to add tickers manually.
fn.Yahoo(topics=['*']).add_topics(['$DIS', '$GOOG'])

# There is also a Reddit class that allows you to get the rss feed of any subreddit. There are a few feeds established in the package but you can pass through any subreddit like you would a ticker. (r/news = $news)
fn.Reddit(topics=['$finance', '$news'])

# Each topic is converted into a Feed object. "save_feeds" is a boolean to determine if the previous entries in the feed should be saved or overwritten whenever get_news() is called.
fn.Investing(topics=['*'], save_feeds=True)

# Current RSS Feeds:
FinNews.CNBC() # CNBC
FinNews.SeekingAlpha() # Seeking Alpha*
FinNews.Investing() # Investing.com
FinNews.WSJ() # Wall Street Journal
FinNews.Yahoo() # Yahoo Finance*
FinNews.FT() # Finance Times
FinNews.Fortune() # Fortune
FinNews.MarketWatch() # MarketWatch
FinNews.Zacks() # Zacks
FinNews.Nasdaq() # Nasdaq*
FinNews.Reddit() # Reddit

# (* denotes ticker feed support)

For all class methods run help(FinNews.CNBC()), help(FinNews.SeekingAlpha()), etc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FinNews-1.0.5.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

FinNews-1.0.5-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file FinNews-1.0.5.tar.gz.

File metadata

  • Download URL: FinNews-1.0.5.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for FinNews-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f13e5fc2d271138cd2b82b409984d27dc3af85f30e75e4566cc167da99aaef23
MD5 39b129e14ca0d9e1329d4327f5b8e49e
BLAKE2b-256 7c02a6b864b64454c93a401b5b3e3584f34c97aca0db07897ef596848dbcf36b

See more details on using hashes here.

File details

Details for the file FinNews-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: FinNews-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for FinNews-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 053df389d520f060d88d55d4dc35d6314c5311c62cdf17d06e91acbba5bc1706
MD5 b462e313923a374730f4b3659a4b4e74
BLAKE2b-256 af7805798b935b5ae9cc83142b669f4038ba7646ee57a817c80f6fd2ae0ab99e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page