A package to scrape news from Money Control
Project description
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
- Clone the repository:
git clone https://github.com/your-username/Money_Control_Scrap.git
cd Money_Control_Scrap
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- 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 foraniruddhakumar@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file money_control_scrap-0.1.2.tar.gz.
File metadata
- Download URL: money_control_scrap-0.1.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41d883880372eeb5dc22e96f51a6dff400f2c840b7c03ead530f048604b322f2
|
|
| MD5 |
e52e5086c0115573aaa49e6023209564
|
|
| BLAKE2b-256 |
4efbb1016564d7d04d30fdde077327b9e2ac36c8e7b307652193c1b15fc0429f
|
File details
Details for the file Money_Control_Scrap-0.1.2-py3-none-any.whl.
File metadata
- Download URL: Money_Control_Scrap-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220228c828cfe78373746910363e1c375368349cb1a99e68fb53b2dc85f2dac1
|
|
| MD5 |
4572fd6e555f11ed597ff13d9114590d
|
|
| BLAKE2b-256 |
66c19a4b7452348a865a45c10bb9a0d68e92507749f8bb3bc3abddfe9631d62b
|