• 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 Do I Get the html Source for a Web Page into a String?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How Do I Get the html Source for a Web Page into a String?


  • Subject: Re: How Do I Get the html Source for a Web Page into a String?
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Tue, 2 Nov 2010 16:37:11 -0400

http://www.yadayadayada.com/framis/index.php?cid=xxx

I'm having trouble getting the right flags for curl to process these correctly.

On Nov 2, 2010, at 4:26 PM, André Renault wrote:

> PHP requests? Can you be specific?
>
> Sent from my iPhone
>
> On Nov 2, 2010, at 4:23 PM, "S. J. Cunningham" <email@hidden> wrote:
>
>> Thanks, but I am looking for the html source.  (inb4 use python, perl, etc, etc instead of Applescript for this). I know I can get it via Safari, but I use Firefox.  Besides, I would prefer not to launch another application just to get this.  Right now, Steve Thompson's "do script curl" looks like the best bet if I can figure out how to get it to work with php requests.
>>
>> Steve Cunningham
>>
>> On Nov 2, 2010, at 4:06 PM, Laine Lee wrote:
>>
>>> Here's what I've been using lately when I've got a copy of the rendered web content on the clipboard. Conversion options depend on several things, of course.
>>>
>>> set textentered to get the clipboard as «class RTF »
>>> set the clipboard to textentered
>>> do shell script "pbpaste | textutil -convert html  -inputencoding  iso_8859-1  -format rtf  -stdin -stdout | pbcopy -Prefer txt"
>>>
>>> Laine Lee
>>>
>>>
>>> On 10/29/10 7:34 AM, "S. J. Cunningham" <email@hidden> wrote:
>>>
>>>> Surely there is an easier way to do this directly.  Now I am saving it to a
>>>> file and reading the file back in.
>>>>
>>>> Thanks
>>>>
>>>> Steve Cunningham _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> AppleScript-Users mailing list      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> edu
>>>> Archives: http://lists.apple.com/archives/applescript-users
>>>>
>>>> This email sent to email@hidden
>>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> AppleScript-Users mailing list      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>> Archives: http://lists.apple.com/archives/applescript-users
>>>
>>> This email sent to email@hidden
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: How Do I Get the html Source for a Web Page into a String? (From: Laine Lee <email@hidden>)
 >Re: How Do I Get the html Source for a Web Page into a String? (From: "S. J. Cunningham" <email@hidden>)
 >Re: How Do I Get the html Source for a Web Page into a String? (From: André Renault <email@hidden>)

  • Prev by Date: Re: How Do I Get the html Source for a Web Page into a String?
  • Next by Date: Re: How Do I Get the html Source for a Web Page into a String?
  • Previous by thread: Re: How Do I Get the html Source for a Web Page into a String?
  • Next by thread: Re: How Do I Get the html Source for a Web Page into a String?
  • Index(es):
    • Date
    • Thread