Re: How to read web-based HTML data into a variable without a browser
Re: How to read web-based HTML data into a variable without a browser
- Subject: Re: How to read web-based HTML data into a variable without a browser
- From: Reinhold Penner <email@hidden>
- Date: Fri, 19 Apr 2002 12:58:41 -1000
On Friday, April 19, 2002, at 12:11 PM, email@hidden wrote:
Can anyone tell me how I can read the html text from a web-site into an
Applescript variable without using or launching a web-browser?
I've been looking through the Standard Scription Additions.osax
dictionary...
I take it from the above that you are on OS X. So this should do what
you want:
do shell script "curl
http://homepage.mac.com/gouldtv/xml.htm"
"<cpe_info>
<cpe_type>DSL PPPoE Router</cpe_type>
<cpe_manufacturer>ABC Inc</cpe_manufacturer>
<cpe_model>PPPoE</cpe_model>
<serial_number>00012356B</serial_number>
<hardware_ver>00009912</hardware_ver>
<software_ver>001</software_ver>
<error_no>0000000</error_no>
<error_desc>NO ERROR</error_desc>
</cpe_info>"
HTH, -Reinhold
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.