```
NSString *htmlString = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://dx.3.cn/desc/11524723238?cdn=2"] encoding:NSUTF8StringEncoding error:nil];
NSData *data = [htmlString dataUsingEncoding:NSUTF8StringEncoding];
TFHpple* doc = [[TFHpple alloc] initWithHTMLData:data];
NSArray* elements = [docsearchWithXPathQuery:@"//img"];
for(TFHppleElement* elementinelements) {
NSLog(@"image url--------->%@--------------",[element objectForKey:@"data-lazyload"]);
}
```
需要用到一个三方库hpple