{"id":22728879,"url":"https://github.com/peteroupc/htmlparser","last_synced_at":"2026-03-04T22:32:10.670Z","repository":{"id":7216415,"uuid":"8523092","full_name":"peteroupc/HtmlParser","owner":"peteroupc","description":"HTML5 Parser for Java","archived":false,"fork":false,"pushed_at":"2025-03-25T04:04:41.000Z","size":1606,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T19:26:14.092Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peteroupc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-03-02T16:12:27.000Z","updated_at":"2025-03-25T04:04:44.000Z","dependencies_parsed_at":"2025-01-30T02:28:13.665Z","dependency_job_id":"05a987cf-1372-4cca-bb56-9c5ccc2270fc","html_url":"https://github.com/peteroupc/HtmlParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peteroupc/HtmlParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FHtmlParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FHtmlParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FHtmlParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FHtmlParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peteroupc","download_url":"https://codeload.github.com/peteroupc/HtmlParser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peteroupc%2FHtmlParser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30096778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T21:59:23.547Z","status":"ssl_error","status_checked_at":"2026-03-04T21:57:50.415Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-10T17:18:24.587Z","updated_at":"2026-03-04T22:32:10.644Z","avatar_url":"https://github.com/peteroupc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"HTML5 parser for Java.\n\nTakes an input stream or a file and returns an HTML document tree.\nThe API is currently only a subset of the DOM.  Example:\n\n    IDocument doc=HtmlDocument.parseFile(filename);\n    for(IElement element : doc.getElementsByTagName(\"img\")){\n        System.out.println(element.getAttribute(\"src\"));\n    }\n\nAnd here is a more complex example that gets all Open Graph and \"image_src\"\nimages specified on a Web page.\n\n      public static List\u003cString\u003e getWebpageImages(String url) throws IOException {\n        IDocument doc;\n        List\u003cString\u003e images=new ArrayList\u003cString\u003e();\n        doc=HtmlDocument.parseURL(url);\n        for(IElement element : doc.getElementsByTagName(\"meta\")){\n          if(\"og:image\".equals(element.getAttribute(\"property\")) ||\n              \"og:image:secure_url\".equals(element.getAttribute(\"property\"))){\n            String content=HtmlDocument.getHref(element,element.getAttribute(\"content\"));\n            images.add(content);\n          }\n        }\n        if(images.size()\u003e0)return images;\n        for(IElement element : doc.getElementsByTagName(\"link\")){\n          if(\"image_src\".equals(element.getAttribute(\"rel\"))){\n            String content=HtmlDocument.getHref(element);\n            images.add(content);\n          }\n        }\n        return images;\n      }\n\nCopyright (C) 2013 Peter Occil.  Licensed under the Expat License.\n\nSample code on this README file is dedicated to the public domain under CC0:\n[https://creativecommons.org/publicdomain/zero/1.0/](https://creativecommons.org/publicdomain/zero/1.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeteroupc%2Fhtmlparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeteroupc%2Fhtmlparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeteroupc%2Fhtmlparser/lists"}