troubleshooting Question

Parse data from website

Avatar of edrz01
edrz01Flag for United States of America asked on
Powershell
20 Comments1 Solution122 ViewsLast Modified:
I am a PowerShell newbie.... I have been struggling on how to get a date value from a website.

I need to get a date from a certain file on a webpage. The webpage is in index format so looks lie this:

8/23/2014 12:00 AM     422508   file120.abc
8/23/2014 12:00 AM     440964   file121.abc
8/23/2014 12:00 AM     332636   file122.abc
...
11/26/2017 2:30 PM     3823     thefile.ini
...
11/25/2017 1:01 AM     88044    file309.abc

I need to find the line that contains 'thefile.ini' and get the date (11/26/2017) from it

When I look at the view source on the page I see

<br>11/26/2017  2:30 PM         3823 <A HREF="/folder/thefile.ini">thefile.ini</A>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 20 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros