Hello Everyone,
I have almost 12000 html files. I want to convert these html files into text files. Is there any code to import html files in sas and convert it in to text file?
Thank you for your time.
You should just search for html to text converters on the web. Or perhaps html to xml.
If the format is very clean you might be able to read it with a data step.
You might also look into reading them into Excel and then importing into SAS from excel.
Can you provide one as an example?
The html files are 10-k reports from SEC edgar. I want to convert these html files into text files. I also have url of these html files.
Oh. Maybe you should firstly download all these htmls at your local PC by using PROC HTTP or filename+url .Then using the method I posted convert it into SAS Datasets ,and use proc export to export txt files.
It is easy. I think.
Ksharp
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.