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

iOS Hpple HTML parse

I need to parse the contents of a website into a tableview in my application. I tried hpple and in some testcases it works. But in my specific case I can't get it to work... HTML:
0
votes
0 answers

Obj-C can't parse HTML

I am parsing some HTML, and I keep getting that the node is nil, when I know its not and I have evaluated the same xPath string in both Safari and Chrome and it takes me where I want here is the code. In viewDidLoad self.url =…
spen123
  • 3,464
  • 11
  • 39
  • 52
0
votes
2 answers

hpple: is it possible to get text value like javascript textContent

Is it possible to get only all the text content of the child elements recursively in hpple. Any method in TFHppleElement class? such as the javascript document.getElementById("testdiv").textContent
karim
  • 15,408
  • 7
  • 58
  • 96
0
votes
1 answer

Can't get data on detailviewcontroller with Hpple parsing

I am a beginner in Obj-C and I try to make an app with this raywenderlich tutorial. I parse html page with Title of articles (mininglife.ru) , also I getting an urls of each articles and keep it in an NSMutableArray for using it in my…
0
votes
2 answers

Get size from image in html with Hpple or RegularExpression

I want to get the size from an image in a HTML page. I parse the HTML document with hpple. Do you know a solution to get the width and height of an image in a HTML page?
0
votes
1 answer

Hpple Element returning with null content

I am trying to parse HTML using an Xpath query string (in Objective-C for iOS). I'm grabbing the element I want, but with everything except the contents. Example html: