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.
Free software: Apache Software License 2.0
Documentation: https://sfinance.readthedocs.io
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.
—
Legal Disclaimer
This project is an independent, educational, and non-commercial utility.
It is not affiliated with, endorsed by, or sponsored by Screener.in, Mittal Analytics Private Limited, or any other third-party data provider.
sfinance does not provide, store, host, or distribute any financial data.
It only reads publicly accessible web content on-demand using browser automation. No data is cached, saved, or redistributed.
All access is controlled by the user via input URLs. You are fully responsible for your use of this tool.
This library is intended for personal, educational, and non-commercial purposes only.
Please respect the terms of service of any website you access. Use responsibly.
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.
Legal Disclaimer
This project is not affiliated with, endorsed by, or sponsored by Screener.in, Mittal Analytics Private Limited, or any other third-party data provider.
This tool does not store, modify, or distribute data. It simply reads publicly viewable HTML pages when accessed by the user, using standard browser automation techniques.
Users are solely responsible for ensuring that their use of this software complies with the terms of service of any website they access.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| sfinance-0.2.1.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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