我需要获取所有单词,这些单词在UIWebView的屏幕上可见.我的UIWebView有html内容.
有人可以帮帮我.
我已经发布了我的错误代码的屏幕截图。

heights 输出

请有人可以帮助我吗?
我写了以下代码:
NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1.1/users/show.json"];
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:username, @"screen_name" ,[[controller.engine accessToken] secret]];
TWRequest *request = [[TWRequest alloc] initWithURL:url parameters:params requestMethod:TWRequestMethodGET];
[request performRequestWithHandler:
^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) {
if (responseData) {
NSDictionary *user = [NSJSONSerialization JSONObjectWithData:responseData
options:NSJSONReadingAllowFragments
error:NULL];
NSString *profileImageUrl = [user objectForKey:@"profile_image_url"];
NSLog(@"%@",profileImageUrl);
}
}];
Run Code Online (Sandbox Code Playgroud)
但我总是得到一个Bad authentication错误.我觉得我错过了什么.有人请检查我的代码吗?或者提供任何建议来检索Twitter用户个人资料图片?
谢谢