• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to read web-based HTML data into a variable without a browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to read web-based HTML data into a variable without a browser (From: email@hidden)

  • Prev by Date: Re: How to read web-based HTML data into a variable without a browser
  • Next by Date: Re: Do shell script and spaces in path
  • Previous by thread: Re: How to read web-based HTML data into a variable without a browser
  • Next by thread: Re: How to read web-based HTML data into a variable without a browser
  • Index(es):
    • Date
    • Thread