Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cron job to parse nippon mutual funds #23

Open
shivamsouravjha opened this issue Oct 12, 2024 · 4 comments · May be fixed by #24
Open

feat: cron job to parse nippon mutual funds #23

shivamsouravjha opened this issue Oct 12, 2024 · 4 comments · May be fixed by #24
Labels
enhancement New feature or request golang good first issue Good for newcomers hacktoberfest

Comments

@shivamsouravjha
Copy link
Owner

shivamsouravjha commented Oct 12, 2024

  • We can get the information from the page of
curl 'https://mf.nipponindiaim.com/investor-service/downloads/factsheet-portfolio-and-other-disclosures' \
  -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
  -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
  -H 'cache-control: max-age=0' \
  -H 'priority: u=0, i' \
  -H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: document' \
  -H 'sec-fetch-mode: navigate' \
  -H 'sec-fetch-site: none' \
  -H 'sec-fetch-user: ?1' \
  -H 'upgrade-insecure-requests: 1' \

in that page we can search for the text of Monthly portfolio for the month end and inside the get the href tag and download the xlsx file, once that xlsx is parsed it has name of all mutual funds and the the sheet they;re in https://mf.nipponindiaim.com/InvestorServices/FactsheetsDocuments/Reliance-Monthly-Portfolios-30-04-2019.xls

we can upload each sheet as a new file in cloudinary with its name(not uuid but name of mutual fund) and also store the name in mongo collection.

This can help us in a lot of features to come!!

@shivamsouravjha shivamsouravjha added enhancement New feature or request good first issue Good for newcomers hacktoberfest golang labels Oct 12, 2024
@cu8code
Copy link

cu8code commented Oct 12, 2024

Hey would love to help!

@shivamsouravjha
Copy link
Owner Author

sure feel free to pick the same!

@cu8code
Copy link

cu8code commented Oct 12, 2024

There are multiple files in https://mf.nipponindiaim.com/investor-service/downloads/factsheet-portfolio-and-other-disclosures going back to September 2012

Q.1 Do we need to get all the XLS files ?
Q.2 What are the data that we need to extract and store ?

When I try to enter https://mf.nipponindiaim.com/InvestorServices/FactsheetsDocuments I get asked to enter username and password!

Q.3 What are the info we need to extract from https://mf.nipponindiaim.com/InvestorServices/FactsheetsDocuments/Reliance-Monthly-Portfolios-30-04-2019.xls

@shivamsouravjha
Copy link
Owner Author

  1. we need all those files (would help us track the percentage holding of a stock for a longer duration.
  2. basically we need that xlsx file in our cloudinary bucket and their entry in our mongo collection (currently we need a regular data scrapper, we would want that data stored making sure we don't store in same cloudinary bucket again)

try the link of https://mf.nipponindiaim.com/investor-service/downloads/factsheet-portfolio-and-other-disclosures and it will have all the necessary link.

the current https://www.stocksight.online/ has an upload button you can try uploading the xlsx here...as of now we won't be needing any data we just need a durable way of extract every month the portfolio. (we can will use this data in later part of project)

@Sama-004 Sama-004 linked a pull request Oct 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request golang good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants