Re: How Do I Get the html Source for a Web Page into a String?
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: André Renault <email@hidden>
- Date: Tue, 2 Nov 2010 16:26:14 -0400
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