Skip to main content

A web scraper for different market data and news from https://stockanalysis.com/

Project description

Stock Analysis Scraper

This project is a Python-based web scraper designed to extract relevant stock information from the Stock Analysis website. It utilizes BeautifulSoup to parse HTML content and extract specific data points, such as market capitalization, revenue, industry, sector, and more. Additionally, it can extract pre-market gainers, after-hours gainers, and all news articles related to stocks.

Features

  • Extracts stock information including:
    • Market Capitalization
    • Revenue (TTM)
    • Net Income (TTM)
    • Shares Outstanding
    • EPS (TTM)
    • P/E Ratio
    • Dividend Information
  • Extracts profile details such as:
    • Industry
    • Sector
    • IPO Date
    • Number of Employees
    • Stock Exchange
    • Ticker Symbol
  • Extracts lists of:
    • Pre-Market Gainers: Stocks with the highest gains during pre-market trading.
    • After-Hours Gainers: Stocks with the highest gains during after-hours trading.
    • All News: Recent news articles related to the stock market and specific stocks.
  • Outputs the extracted data as a dictionary for easy integration with other applications or storage solutions.

Prerequisites

Before running the scraper, ensure you have the following installed:

  • Python 3.6+
  • BeautifulSoup4
  • lxml (optional but recommended for faster HTML parsing)

You can install the required Python packages using pip:

pip install beautifulsoup4 lxml

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

stockanalysis_scraper-1.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

stockanalysis_scraper-1.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file stockanalysis_scraper-1.1.0.tar.gz.

File metadata

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

File hashes

Hashes for stockanalysis_scraper-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ffb19c54a20f63de43379c742a352580bb04cbb7a386243925261a74f73b6b7b
MD5 9495ad7c9bb846a97904728b5cd5bea1
BLAKE2b-256 ee9abe700011fceb5fd361939c2a8b942223dadc0ffcf6a1ff104cb322b576e4

See more details on using hashes here.

File details

Details for the file stockanalysis_scraper-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stockanalysis_scraper-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab8a9083757d99a70a1e7853d613a5d0fa57e8bbbae708a6b93f9acf6ad22c56
MD5 15b4d4c6dd263c29ad59695cc9115b5a
BLAKE2b-256 b196d9dbdfe1da2c0718638779da3c9d85327bd33af0732e7805924a360ab4fe

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