• 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: A better way to get web data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A better way to get web data?


  • Subject: Re: A better way to get web data?
  • From: Rob Stott <email@hidden>
  • Date: Thu, 4 May 2006 15:56:42 +0100


On 4 May 2006, at 15:34, Monte Babington wrote:

I've got a script that retrieves text from a webpage’s HTML.  I need to loop this function many times.  I have two problems:

Lucky you! I have thousands of problems!

I'd be tempted to look at using 'do shell script' and 'curl' like this...

set theHTML to (do shell script "curl http://www.blahblah.co.uk")


Some of the data will have to be looked up by submitting info to a cgi form on a website.  How on earth do I go about that?

You can probably do that using curl's -d option, like this...

set theHTML to (do shell script "curl  -d  company=bbc -d dept=sales http://www.blahblah.co.uk")

...I've not used the -d option much so I suggest you read the man page for curl for more details. There's a few m ore bits and bobs in there that might be more appropriate for what you're trying to do.

Hope that helps!

Rob
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >A better way to get web data? (From: Monte Babington <email@hidden>)

  • Prev by Date: Continuation marks in strings
  • Next by Date: IPTC Data
  • Previous by thread: Re: A better way to get web data?
  • Next by thread: Re: A better way to get web data?
  • Index(es):
    • Date
    • Thread