Skip to main content

Moneycontrol API is a python library to get news data from moneycontrol.com in JSON format.

Project description

MoneyControl Api

Status of project: Complete

Author: Arabian Coconut

Docker Version: 1.1.4

Local Version: 1.1.3


Description

This is a python API for moneycontrol.com, which provides you with the news, latest news, and business news from moneycontrol.com in JSON format for your server's integration.

How to use api

wget https://mc-api-j0rn.onrender.com/api/news 
wget https://mc-api-j0rn.onrender.com/api/latest_news
wget https://mc-api-j0rn.onrender.com/api/business_news
wget https://mc-api-j0rn.onrender.com/api/list

Installation for local implementation

pip install moneycontrol-api

Usage for local implementation

from moneycontrol import moneycontrol_api as mc

Supported API functions

  • get_news

  • get_latest_news

  • get_business_news

Output format

{
  "News Type:": "Latest News",
  "Title:": "Chhattisgarh CM transfers Rs 15 crore online to beneficiaries as part of Godhan Nyay Yojana",
  "Link:": "https://www.moneycontrol.com/news/india/chhattisgarh-cm-transfers-rs-15-crore-online-to-beneficiaries-as-part-of-godhan-nyay-yojana-11103381.html",
  "Date:": "August 05, 2023 05:08 PM"
}

Changelog

  • 1.1.4
    • Added LRU cache to reduce load on server
    • Added json storage for viewing all requests made to server via /api/list for online demo implementation.
    • Note: Only Docker implementation is updated with this version for local implementation please use 1.1.3 from master branch.

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

moneycontrol_api-1.1.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

moneycontrol_api-1.1.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file moneycontrol_api-1.1.4.tar.gz.

File metadata

  • Download URL: moneycontrol_api-1.1.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for moneycontrol_api-1.1.4.tar.gz
Algorithm Hash digest
SHA256 aabae335b8853084091c9a55adf18e6db1599f6d2359154647ea5caeb56cb16c
MD5 91e17a69dca54fa0642f7f27950fda5e
BLAKE2b-256 ce0f04b11720154d7ca472cd801a4cc69223825d73d9b92d6cff396c5fea8099

See more details on using hashes here.

Provenance

File details

Details for the file moneycontrol_api-1.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for moneycontrol_api-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e0cb618b56fbd0bc57309c6f0e338e844359dfcbf7a9679058fffa6a58ffabc7
MD5 8648a4d37d4b294a948332064de2ab43
BLAKE2b-256 94a9aeccd19a18448ac01cbbb0ae9a6abe8698592dc018af523e491dc759282a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page