简体   繁体   中英

Objective-C: Extract Text From a URL

I am wondering how i would go out onto the web and grab a body of text from a specific website, then display it to a user within my app. I got the whole display part, it is the grabbing text from a URL that has me stumped.

You can use TFHpple , a XPath Parser which allows you to parse HTML and other DOM documents

You want stringWithContentsOfURL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM