shrivallabha
Excel Ninja
Hello All,
I have been working on a code for my friend to pull information from website (financial). Putting code together was not an issue.
It is two phased approach:
1. It pulls portfolio information from listed mutual funds.
2. Then it scrapes individual share prices from the same site.
Site is: http://www.moneycontrol.com/
Question: The code works but it is slow. Painfully slow for phase 2 as there are hundreds of shares. Currently I am getting shares URL in phase 1 pull and then scraping using the same MSXML2.XMLHTTP60 object.
Obviously, I am having few own ideas to improve efficiency.
- Adding Dictionary to minimize scaping for shares by de-duplicating.
- Pulling complete dump and having a mapping table to map to the share values I get.
However, I'd like to know from experts to whether current code can be improved upon by using some other objects or methods?
Attachment:
In sheet 1 "MF-INDEX", you need to put Mutual Fund Name. I have kept one.
In sheet 2 output is taken from above mentioned site.
Thank you very much in advance for your ideas and inputs! If any clarification is required then let me know.
I have been working on a code for my friend to pull information from website (financial). Putting code together was not an issue.
It is two phased approach:
1. It pulls portfolio information from listed mutual funds.
2. Then it scrapes individual share prices from the same site.
Site is: http://www.moneycontrol.com/
Question: The code works but it is slow. Painfully slow for phase 2 as there are hundreds of shares. Currently I am getting shares URL in phase 1 pull and then scraping using the same MSXML2.XMLHTTP60 object.
Obviously, I am having few own ideas to improve efficiency.
- Adding Dictionary to minimize scaping for shares by de-duplicating.
- Pulling complete dump and having a mapping table to map to the share values I get.
However, I'd like to know from experts to whether current code can be improved upon by using some other objects or methods?
Attachment:
In sheet 1 "MF-INDEX", you need to put Mutual Fund Name. I have kept one.
In sheet 2 output is taken from above mentioned site.
Thank you very much in advance for your ideas and inputs! If any clarification is required then let me know.