Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Moneycontrol.com is an Indian online business news website owned by E-EIGHTEEN Dot Com Ltd., a subsidiary of the media house TV18. moneycontrolPy is a python API for Money Control Forum.
Before running the the package make sure you already have these pip packages.
and the same chromedriver version of your current Google Chrome Browser. You can download the respective chromedriver from here.
moneycontrolPy requires python3.6 and above to run. Install the dependencies and moneycontrolPy from pip.
pip install moneycontrolPy
After installing, you can import the package by
import moneycontrolPy.mcp as mcp
api = mcp.API()
api.DRIVER_PATH = 'path_to_your_chromedriver_file/chromedriver'
url_user = "https://mmb.moneycontrol.com/arvind151-user-profile-617276696e64313531.html"
url_post = "https://mmb.moneycontrol.com/forum-topics/stocks/hero-motocorp/thread-message-81248383-83073237.html"
url_stock = 'https://mmb.moneycontrol.com/forum-topics/stocks/ab-money-246165.html'
"""
You could change the urls if you want to search
for a specific user/post/stock from the moneycontol forum.
"""
user_info = api.get_user_info(url_user) #To extract the user information
post_info = api.get_post_info(url_post) #To extract the post information
stock_info = api.get_stock_info(url_stock) #To extract the stock information
top_boarders = api.get_top_boarders() #To extract the top boarders
hot_stocks = api.get_stock_in_the_news() #To extract the stock in the news
"""
There are numerous options/parameters available for each of the above functions functions.
Please refer the docstring to find them all or you could see the source code & try to understand them.
All these functions returns a dict.
You can same them as json by passing the following parameter
Eg.
user_info = api.get_user_info(url_user,save_as_json=True)
"""
Want to contribute? Great! Find moneycontrolPy Github repo and feel free to fork and modify to your need.
MIT
FAQs
A python API for Money Control Forum
We found that moneycontrolPy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.