• 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: Extracting information from WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Extracting information from WebView (From: Claus Atzenbeck <email@hidden>)

  • Prev by Date: Re: Interface Builder 3 -- Completely New!
  • Next by Date: Re: How do I get CATransition to actually work?
  • Previous by thread: Re: Extracting information from WebView
  • Next by thread: have Leopard functionality and still run on Tiger
  • Index(es):
    • Date
    • Thread