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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Carlos Solís Salazar 17,791 Reputation points MVP
    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 45,906 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.