Skip to content

Money_Control_Scrap is a Python package for scraping the latest business news from the Money Control website (One of the biggest website on Finance ion India)

Notifications You must be signed in to change notification settings

Demon-2-Angel/Money_Control_Scrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Delivered By Aniruddha Kumar

Money_Control_Scrap

Money_Control_Scrap is a Python package for scraping the latest business news from the Money Control website (One of the biggest website on Finance ion India)

Features

  • Scrape news headlines, links, and publication times from Money Control.
  • Save the scraped data to a CSV file.
  • The CSV contains, date-time, Headline and the Link to that site

Installation

Use the package manager pip to install Money_Control_Scrap.

pip install Money_Control_Scrap

Usage

Importing and Using the Package

python

from Money_Control_Scrap import fetch_news_headlines

# Define the full path to the chromedriver
chromedriver_path = r"./path_to_chrome_driver" 

# Fetch the news headlines
csv_path = fetch_news_headlines(chromedriver_path)
print(f"News headlines saved to: {csv_path}")

# Fetch news headlines and save to CSV
fetch_news_headlines()

Command Line Interface

After installing the package, you can also run the scraper directly from the command line:

Money_Control_Scrap /path_to_chrome_driver

Development

Project Structure

Money_Control_Scrap/
    __init__.py
    main.py
.github/
    workflows/
        python-package.yml
setup.py
requirements.txt
README.md

Setup for Development

  1. Clone the repository:
git clone https://github.com/your-username/Money_Control_Scrap.git
cd Money_Control_Scrap
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  1. Install the dependencies:
pip install -r requirements.txt

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change

Contact

For any inquiries, please contact Aniruddha Kumar at [email protected].

About

Money_Control_Scrap is a Python package for scraping the latest business news from the Money Control website (One of the biggest website on Finance ion India)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages