How to code this powershell script?

oemScript 81 Reputation points
2022-02-27T12:49:28.177+00:00

Referring to following link, I would like to know on how to use script (powershell or batchfile) for clicking Export and download csv file into specific path.

Does anyone have any suggestions?
Thanks in advance

https://financials.morningstar.com/ratios/r.html?t=0P000003MH&culture=en&platform=sal

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Carlos Solís Salazar 18,191 Reputation points MVP Volunteer Moderator
    2022-02-27T14:20:46.643+00:00

    You should do a Web Scraping with PowerShell,

    These are some examples:


    If the reply was helpful, please don't forget to upvote and/or accept as an answer, thank you

    Regards
    Carlos Solís Salazar

    0 comments No comments

  2. Rich Matheisen 47,901 Reputation points
    2022-02-27T15:43:23.413+00:00

    "Morningstart" has a REST API: BAA_REST_API.pdf

    You can use the Invoke-RESTMethod cmdlet.

    Access to that API is probably via a paid subscription.

    You can also try using Invoke-WebRequest and then getting the information from the parsed HTML.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.