Invoke-WebRequest to scrape web pages

Welcome Forums General PowerShell Q&A Invoke-WebRequest to scrape web pages

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
6 months, 2 weeks ago.

  • Author
    Posts
  • #101298

    Participant
    Points: 0
    Rank: Member

    Dear All,
    Is it possible to scrape multiple we pages using Invoke-WebRequest or any powershell cmdlets? I am trying to export all player stats from https://whoscored.com/Statistics – Player Statistics. The list goes on for multiple web pages.
    Thanks
    Fred

  • #101316

    Participant
    Points: 320
    Helping Hand
    Rank: Contributor

    There is no cmdlet/function that by default will do this.
    This is why we'd use collections of objects / locations to act on.
    Why not just create an array for the websites you are targeting and use ForLoop?
    If there is a lot of, leverage parallel processing.

The topic ‘Invoke-WebRequest to scrape web pages’ is closed to new replies.