topfunky / hpple

An XML/HTML parser for Objective-C, inspired by Hpricot.
http://topfunky.com
MIT License
2.77k stars 473 forks source link

hpple on AppleWatch #68

Open Ragazzetto opened 9 years ago

Ragazzetto commented 9 years ago

Hi i use your class in my app to display image of a gallery in a blog under wordpress.com

In iPhone works perfectly , but when i use hpple on Apple Watch it's works on simulator but on fisical device it won't works ! When the parsing arrive on this line of code

TFHpple *parser = [TFHpple hppleWithHTMLData:appleWatchHtmlData];
NSLog(@"parser %@", parser);
NSString *tutorialsXpathQueryString = @"//div[@class='gallery galleryid-1461 gallery-columns-3 gallery-size-thumbnail']/dl/dt/a/img";

NSArray *imageFilesArray = [tutorialsParser searchWithXPathQuery:tutorialsXpathQueryString];
NSMutableArray *imagesArray = [[NSMutableArray alloc] initWithCapacity:0];

the nslog say 2015-10-25 18:19:13.939 WatchApp Extension[398:328494] parser <TFHpple: 0x1655d7e0> 2015-10-25 18:19:13.947 WatchApp Extension[398:328494] Unable to parse.

Perhaps it may be due to the limited apple watch resources, but how can i solve this issue ?

Thank you so much

timh1004 commented 8 years ago

I have exactly the same problem! Have you found a solution?