Skip to main content

A Python library for scraping financial data from various sources.

Project description

MarketMiner

MarketMiner is a Python library for scraping finance-related information — from market news to company fundamentals — in an easy and structured way.

It is designed for analysts, traders, and developers who want quick programmatic access to financial data without relying on expensive APIs.

Features

  • News Scraper: Get historical news articles from various sources.
  • Company Fundamentals: Access financial statements and key metrics for public companies.
  • Utility Functions: Common helpers for parsing, cleaning, and making requests.

Installation

pip install marketminer

Usage

1. Scraping News Articles

from marketminer import scrape_economic_times

df = scrape_economic_times(start_date='2023-01-01', end_date='2023-10-01')
print(df.head())

2. Fetching Company Fundamentals

from marketminer import scrape_fundamentals
financial_data = scrape_fundamentals("TCS")

print("Profit & Loss Statement:")
print(financial_data['profit_loss'].head())
print("Balance Sheet:")
print(financial_data['balance_sheet'].head())

Dependencies

  • requests: For making HTTP requests.
  • pandas: For data manipulation and analysis.
  • beautifulsoup4: For parsing HTML content.
  • selenium: For web scraping dynamic content.

Note: For fundamentals scraping, ensure you have Google Chrome + ChromeDriver installed.

License

MIT License. Free to use and modify.

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

marketminer-0.4.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

marketminer-0.4.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file marketminer-0.4.0.tar.gz.

File metadata

  • Download URL: marketminer-0.4.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for marketminer-0.4.0.tar.gz
Algorithm Hash digest
SHA256 dee0513868119d32ce38c11a60eea17ec03072fe12f0dc33476bbf8f29b88f5d
MD5 b959268b139c887ec20a2082058f9ef7
BLAKE2b-256 2f0f421301b1baa6f91852babcfb08364787bbd6178cc2229ff5bdd9803480ca

See more details on using hashes here.

File details

Details for the file marketminer-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: marketminer-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for marketminer-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5076bb23d3edc2e2cee2636de0026e063705467aa8cc19ccf3d6dd6f86f02ff
MD5 747187c07ecfd543122dade5dd986f10
BLAKE2b-256 11dbb6c0e02b2145195a263e8b2be7acb2c6ef6900bf561013bff5805f307cbd

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