Skip to main content
https://img.shields.io/pypi/v/sfinance.svg Documentation Status

sfinance is a lightweight Python library for automating the extraction of financial tables from publicly accessible, structured HTML pages.

It uses Selenium and BeautifulSoup under the hood to simulate browser behavior and extract data into pandas DataFrames for further analysis.

This tool is intended for personal and educational use only.

Usage

Install the package (once published on PyPI):

pip install sfinance

Use it like this:

from sfinance.sfinance import SFinance
sf = SFinance("https://www.screener.in/")
t = sf.ticker("INFY")
print(t.get_overview())
print(t.get_income_statement())
sf.close()

This will return clean, structured pandas DataFrames from dynamically rendered pages. You are expected to supply valid URLs yourself. The package does not suggest or pre-configure any third-party endpoints.

—

Features

  • Uses Selenium to render dynamic content

  • Parses financial tables with BeautifulSoup

  • Extracts income statement, balance sheet, cash flow, shareholding, and company overview

  • Accesses company documents: announcements, annual reports, credit ratings, and concalls

  • Downloads documents (PDFs, HTML) directly to a local folder with flexible filters

  • Stock screener with custom financial queries (login required)

  • Outputs pandas DataFrames for analysis

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Metadata

Release files for sfinance 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sfinance 0.2.1
File Size Uploaded
sfinance-0.2.1.tar.gz 19.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sfinance 0.2.1
File Interpreter ABI Platform
sfinance-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.2 kB

Release files / sfinance-0.2.1.tar.gz

Download URL sfinance-0.2.1.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
83084755c149cc46d6595e3fdb247aac9ff1e1bc516641c5e9c0b618ee466ab6
BLAKE2b-256 checksum
How to use checksums
87d3de3038c92ce190685811091115ced5f668757f1aed7e75c93ba989dab09a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 2, 2026.

Transparency log

Release files / sfinance-0.2.1-py3-none-any.whl

Download URL sfinance-0.2.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e01f7747279efa4d6597edb2784681c6890591ce94d8f4fb559e6c2522472edd
BLAKE2b-256 checksum
How to use checksums
f50af80e837732e0d645d2db79712143cac6d74dab575c2f3e7e2d849947ff03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page