Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Invoke-WebRequest gives a single line CSV file

$
0
0

Hello,

I am using the Invoke-WebRequest to extract data from a website that ends with .HTML. The data is stored as a CSV file, however, it is all stored as a single line. I'd like the data to match what is on the website. Below is an example.

ID, Title, Name, Age

1,Mr,Jason,19

2,Mrs,Judy,30

3,Mr,John,42

The data on the CSV file is coming in as ID,Title,Name,Age<BR>,1,Mr,Jason,19<BR>,2,Mrs,Judy,30<BR>,3,Mr,John,42

Any idea why this is happening and how I can get a multiple line CSV file data?


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>