Questions tagged [hpple]

An XML/HTML parser for Objective-C, inspired by Hpricot.

Features

  • Easy searching by XPath (CSS selectors are planned)
  • Parses HTML (XML coming soon)
  • Easy access to tag content, name, and attributes.
105 questions
0
votes
1 answer

Accessing files on password protected server

I've been retrieving documents from a public web server by going to the URL and parsing the HTML tree with TFHpple, like this: NSData *documentsHTMLData = [NSData dataWithContentsOfURL:myURL]; TFHpple *documentsParser = [TFHpple…
Robert
  • 5,278
  • 43
  • 65
  • 115
0
votes
0 answers

Parsing HTML table from file Xcode

I have a problem with "Hpple". I'm parse html file, and I want to get the entire table, but the result I get (null) My code in Objective-C: -(void)loadTutorials { // 1 paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,…
IlyaKharlamov
  • 479
  • 1
  • 4
  • 10
0
votes
1 answer

How can I parse tables in HTML?

I'm trying to parse an HTML page with a lot of tables. I've searched the net on how to parse HTML with Objective C and I found hpple. I'd look for a tutorial which lead me to: http://www.raywenderlich.com/14172/how-to-parse-html-on-ios With this…
0
votes
1 answer

TFHpple request not running on background thread?

this works fine on the main thread but for some reason doesn't work when running on a background thread. If you just comment out the call to dispatch_async than the program works fine! Code: NSString *requestString = [NSString…
Praxder
  • 2,315
  • 4
  • 32
  • 51
0
votes
1 answer

hpple parser string length issue

There is a problem parsing the string. i got the data from web server HTML data is very long.and content of node is long too. almost 3000~4000 length. Characters long, there is a problem, in my opinion. my code like this -…
realmasse
  • 523
  • 1
  • 6
  • 18
0
votes
1 answer

Finding the xpath of a certain div

I'm using the hpple library to get the content of a certain div on a webpage. Usage: NSData* data = [trimmedString dataUsingEncoding:NSUTF8StringEncoding]; TFHpple *xpathParser = [[TFHpple alloc] initWithHTMLData:data]; NSArray *elements =…
dev6546
  • 1,412
  • 7
  • 21
  • 40
0
votes
1 answer

iOS Parse HTML attribute with Hpple

I am trying to retrieve an attribute in an input tag in HTML. My NSLog is coming back null. What's wrong with my syntax? I am trying to retrieve the value for "value=" in the input tag. Heres the HTML I am parsing:
Jon Erickson
  • 1,876
  • 4
  • 30
  • 73
0
votes
1 answer

Parsing multiple HTML branches hpple

What I am trying to do is parse multiple sections of a page on a site. Here is what I am doing: NSURL *tutorialsUrl = [NSURL URLWithString:@"http://www.cetsp.com.br/"]; NSData *tutorialsHtmlData = [NSData…
MCKapur
  • 9,127
  • 9
  • 58
  • 101
0
votes
1 answer

hpple parse xml , [element content] always be null

1.this is my code NSStringEncoding encoding2 = NSUTF8StringEncoding; // i am from china NSString *c1 = @"sssasas"; htmlData = [c1…
0
votes
1 answer

hpple elements within elements

I have been using Hpple to parse some html in my iphone application (iOS5.1). I have searched for all 'td' elements within a table row. I am iterating through each of these elements, and for the most part I can retrieve all the information I need…
BON
  • 433
  • 2
  • 9
  • 18
0
votes
1 answer

How to solve iPhone app hpple HTML Parsing 'libxml/tree.h' file not found?

I am trying to parse HTML URL content using hpple for iPhone app. I want to parse and get data from like this URL http://www.example.com/mobile/403.html. I have used Google and found hpple for HTML parsing. I got the sample HTML parsing hpple code…
Gopinath
  • 5,392
  • 21
  • 64
  • 97
0
votes
1 answer

Design choice with AVQueuePlayer and hpple

I'm designing an iPhone app that plays 3 files in sequence, using the AVQueuePlayer class. The 3 urls that I need to play in sequence must be extracted first from an .htm file, using the http:// protocol. For that purpose I'm using the TFHpple…
neowinston
  • 7,584
  • 10
  • 52
  • 83
-1
votes
1 answer

XPath hpple problems objective c

How to find right XPath to this html page, I have a problem with text after symbol « . I use xcode 6 and hpple library. Thanks for answers.
-2
votes
1 answer

iPhone SDK: parsing html table and displaying in iphone tableview

I am using the hpple plugin to parse and display html elements in my iphone app. The problem i'm having is say there is a table on the webpage I am trying to parse, with several rows, (that may change from time to time). How do I go about getting…
EI756
  • 557
  • 1
  • 8
  • 19
-2
votes
1 answer

UITableview not display data

Hey guys I am using Hpple to get some data from the web and display it in a table view. I am using the code from ray wenderlich. The source code is available at the bottom of this page http://www.raywenderlich.com/14172/how-to-parse-html-on-ios.…
spen123
  • 3,464
  • 11
  • 39
  • 52
1 2 3 4 5 6
7