Get HTML content from sites

Discussion in 'Mac Programming' started by shtuceron, Feb 21, 2010.

  1. shtuceron macrumors newbie

    Joined:
    Dec 22, 2009
    #1
    Hi all.
    I have some problem with WebView component, i want get html content from some sites to use it but i dont no how can it make.
    thanks.


    Excuse me, but i have more one question...
    Can i catch message from mouse then mouse end selected some text???
     
  2. ccamelot macrumors member

    ccamelot

    Joined:
    Feb 21, 2010
    Location:
    Poland
    #2
    HTML content et al..

    Hi,

    no need to use webkit. Just do something like:
    NSString *pageSourceString = [NSString stringWithContentsOfURL:[NSURL urlWithString:mad:"http://yoursite.com"] usedEncoding:nil error:nil];

    What to you want do achieve by detecting mouse over text?

    regards
    Les
     
  3. shtuceron thread starter macrumors newbie

    Joined:
    Dec 22, 2009
  4. Denarius macrumors 6502a

    Denarius

    Joined:
    Feb 5, 2008
    Location:
    Gironde, France
    #4
    You can use do javascript with applescript. Write the javascript to isolate the elements you need and the command can pass it back to applescript to paste to the clipboard.
     

Share This Page