{"id":13742749,"url":"https://github.com/topfunky/hpple","last_synced_at":"2025-04-12T01:55:07.316Z","repository":{"id":492565,"uuid":"118996","full_name":"topfunky/hpple","owner":"topfunky","description":"An XML/HTML parser for Objective-C, inspired by Hpricot.","archived":false,"fork":false,"pushed_at":"2021-07-15T04:18:17.000Z","size":112,"stargazers_count":2772,"open_issues_count":39,"forks_count":467,"subscribers_count":107,"default_branch":"master","last_synced_at":"2025-04-12T01:55:02.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://topfunky.com","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/topfunky.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-02-01T00:00:26.000Z","updated_at":"2025-03-13T09:14:59.000Z","dependencies_parsed_at":"2022-07-07T14:03:37.506Z","dependency_job_id":null,"html_url":"https://github.com/topfunky/hpple","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfunky%2Fhpple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfunky%2Fhpple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfunky%2Fhpple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topfunky%2Fhpple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topfunky","download_url":"https://codeload.github.com/topfunky/hpple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505870,"owners_count":21115354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:00:35.720Z","updated_at":"2025-04-12T01:55:07.297Z","avatar_url":"https://github.com/topfunky.png","language":"Objective-C","readme":"[![Build Status](https://travis-ci.org/premedios/hpple.png)](https://travis-ci.org/premedios/hpple)\n\n# DESCRIPTION\n\nHpple: A nice Objective-C wrapper on the XPathQuery library for parsing HTML.\n\nInspired by why the lucky stiff's [Hpricot](http://github.com/why/hpricot/tree/master).\n\n# CREDITS\n\nHpple was created by Geoffrey Grosenbach, [Topfunky Corporation](http://topfunky.com) and [PeepCode Screencasts](http://peepcode.com).\n\n[Contributors](https://github.com/topfunky/hpple/graphs/contributors)\n\n# FEATURES\n\n* Easy searching by XPath (CSS selectors are planned)\n* Parses HTML (XML coming soon)\n* Easy access to tag content, name, and attributes.\n\n# INSTALLATION\n\n* Open your Xcode project and the Hpple project.\n* Drag the \"Hpple\" directory to your project.\n* Add the libxml2.2.dylib framework to your project and search paths as described at [Cocoa with Love](http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html)\n\nMore documentation and short screencast coming soon...\n\n# USAGE\n\nSee TFHppleHTMLTest.m in the Hpple project for samples.\n\n```objc\n#import \"TFHpple.h\"\n\nNSData  * data      = [NSData dataWithContentsOfFile:@\"index.html\"];\n\nTFHpple * doc       = [[TFHpple alloc] initWithHTMLData:data];\nNSArray * elements  = [doc search:@\"//a[@class='sponsor']\"];\n\nTFHppleElement * element = [elements objectAtIndex:0];\n[e text];                       // The text inside the HTML element (the content of the first text node)\n[e tagName];                    // \"a\"\n[e attributes];                 // NSDictionary of href, class, id, etc.\n[e objectForKey:@\"href\"];       // Easy access to single attribute\n[e firstChildWithTagName:@\"b\"]; // The first \"b\" child node\n```\n\n# TODO\n\n* Internal error catching and messages\n* CSS3 selectors in addition to XPath\n\n\n","funding_links":[],"categories":["Objective-C  Stars 1000以内排名整理","Objective-C","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopfunky%2Fhpple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopfunky%2Fhpple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopfunky%2Fhpple/lists"}