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
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
moneycontrol_api-1.1.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for moneycontrol_api-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0cb618b56fbd0bc57309c6f0e338e844359dfcbf7a9679058fffa6a58ffabc7 |
|
MD5 | 8648a4d37d4b294a948332064de2ab43 |
|
BLAKE2b-256 | 94a9aeccd19a18448ac01cbbb0ae9a6abe8698592dc018af523e491dc759282a |