Re: Extracting information from WebView
Re: Extracting information from WebView
- Subject: Re: Extracting information from WebView
- From: Scott Stevenson <email@hidden>
- Date: Sat, 27 Oct 2007 16:39:27 -0700
On Oct 27, 2007, at 12:29 PM, Claus Atzenbeck wrote:
In particular, I want to get a list of authors of a given Wikipedia
page. For example, when displaying the page
<http://en.wikipedia.org/wiki/Siege_of_Malakand>, I would like to get
all user names that are mentioned on the article's history page,
that is
<http://en.wikipedia.org/w/index.php?
title=Siege_of_Malakand&action=history>.
Users on the article's history page appear like the following in the
HTML source:
<a href="/wiki/User:Yomangani"
title="User:Yomangani">Yomangani</a>
I'm wondering what the best way would be to retrieve an array of all
authors of a currently displayed Wikipedia page.
WebKit has API for extracting data from the page:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
DisplayWebContent/Tasks/DOMObjCBindings.html>
There's also a bridge between Cocoa and JavaScript which might be
useful:
<http://developer.apple.com/documentation/Cocoa/Reference/WebKit/
Classes/WebScriptObject_Class/Reference/Reference.html>
<http://lipidity.com/apple/javascript-cocoa-webkit/>
- Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden