get information from a web page

Welcome Forums General PowerShell Q&A get information from a web page

Viewing 5 reply threads
  • Author
    Posts
    • #253754
      Participant
      Topics: 26
      Replies: 41
      Points: 381
      Rank: Contributor

      hi everyone,

      My powershell skills are always improving but I just hit a wall.

      I’m trying to create a script that would get the end of live dates for windows 10 versions from this web page;

      https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet

      I know how to do the invoke-webrequest, but I have absolutely no idea how to grab the info in the table I need to read.

      I’m not asking for a full script, but could someone please give me pointers to get me started?

      Thank you!

    • #253760
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      Does it really make any sense to create a script for that? The content of that site is pretty static. It might be a lot of effort for very little benefit.

    • #253769
      Participant
      Topics: 26
      Replies: 41
      Points: 381
      Rank: Contributor

      Does it really make any sense to create a script for that? The content of that site is pretty static. It might be a lot of effort for very little benefit.

      ok but what about next versions in the future? would be nice to have it dynamic!

      I’d like to know anyway. If you don’t want to answer, please stay out of my post.

      • This reply was modified 1 month, 3 weeks ago by Kardock.
    • #253775
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      OK. So what have you tried so far? Please show your code.

    • #253787
      Participant
      Topics: 26
      Replies: 41
      Points: 381
      Rank: Contributor

      OK. So what have you tried so far? Please show your code.

      I don’t even know where to start. I did an invoke-webrequest and got a ton of information back and I have no clue where to start. I ran this;

      $link = 'https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet'<br />Invoke-WebRequest $link<br />

      and then BAM, a lot of info came back.

      thenĀ  I tried this to see which members I was dealing with;

      $link = ‘https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet&#8217;
      $web = Invoke-WebRequest $link
      $web | gm

      I still have no clue what should be the next step.

      thanks for trying to help!

    • #253790
      Participant
      Topics: 26
      Replies: 41
      Points: 381
      Rank: Contributor

      OK nevermind this, my skills are not there yet so I’ll use a static table instead.

      thanks for trying!

Viewing 5 reply threads
  • You must be logged in to reply to this topic.