Forums

Getting ProxyError while using MfTool library

Hi, I am trying to use Mftool library to get Mutual fund data in India. https://mftool.readthedocs.io/en/latest/

while trying to use the library, i am getting ProxyError

ProxyError: HTTPSConnectionPool(host='www.amfiindia.com', port=443): Max retries exceeded with url: /spages/NAVAll.txt (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

To reproduce the issue, you can install the library using

pip install mftool

and then in python console

from mftool import Mftool
mf = Mftool()

Please suggest how to disbale the proxy for using this library

It's because free accounts have limited access to the internet. See https://help.pythonanywhere.com/pages/403ForbiddenError/

Hi Team, Can you please add this website to allowlist ?

Please follow the instructions here: https://help.pythonanywhere.com/pages/RequestingWhitelistAdditions/

Thank you