Skip to main content

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=['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.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FinNews-1.0.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: FinNews-1.0.0.tar.gz
  • Upload date:
  • Size: 12.9 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.0.tar.gz
Algorithm Hash digest
SHA256 bb4a8f8ed09be6452e36abef06d10b88aa140391686497852547c0dc872513aa
MD5 221a6e62d6f7569317c99d7698cef1d4
BLAKE2b-256 805a7486aba675c3afb92fa533a1e9d8e2db4bde7349f267efb1ed61e946b9ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FinNews-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb442ca6836f090b8b5bfd417c3685d413f416bfb8f9750a6d3264cd5384c341
MD5 11332ec27501b2ec98566c54edddfa3e
BLAKE2b-256 515b884820c7d6c7ff7a4b25ad14e97085a31633ac5726595e5003958db48149

See more details on using hashes here.

Supported by

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